The Unicode text handling in Windows has been significantly revamped from the APIs listed in these articles, as has the text rendering APIs which now go through DirectX.
Just pointing out that the technology for Notepad has actually changed and improved since 2005.