| Programming | Software Engineering | Web Design | Database | Operating Systems

What code page does MSLU convert with

Michael Kaplan
Keywords: MSLU,convert
From: http://blogs.msdn.com/michkap/archive/2005/05/13/417060.aspx

The Microsoft Layer for Unicode is usually just a very simple wrapper over the non-Unicode APIs on Window 95, 98, and Me, that uses the default system code page to do the conversions.

There are of course exceptions to this; there are times when Win9x will do just fine with the original Unicode strings, and when that is the case, MSLU works hard to honor that support. I will talk about those cases another day.

(A lot of the information in this post has already been published in that article that was written for MSDN Magazine entitled MSLU: Develop Unicode Applications for Windows 9x Platforms with the Microsoft Layer for Unicode. I just did not have the same space restrictions here!)

But the question of what code page to use is not one that is always universally clear.

I would say there are six different buckets that the various functions fall into:

The decisions over what to use for the conversion were not arbitrary.

Because, believe it or not, there are many internal pieces of Win9x that actually do support Unicode. This is a fact that Chris Wendt reminded me of years ago, when he pointed to TrueType fonts, large pieces of the GDI that uses those fonts, the NLS data, all of the COM interfaces in the Shell, and more. And he was right; Unicode support is sometimes more than just the interface.  

Thus in cases where conversion was already being done by the operating system, the goal was to match that conversion that the OS itself was doing. Because any time we did not match the OS behavior, all of the string outside of ASCII was probably corrupted.

So the answer to the question first posed in the title of this post (What code page does MSLU convert with?) is that it really depends. On the function you are calling, sometimes on how you are calling it, and sometimes on the way other functions have set the stage....


Related Article
  • Challenges behind MSLU: the loader

  • Comment
    ultram detox Post At: 2006-2-15 21:40:42
    vladgondonpozornii
    butalbital cheap online Post At: 2006-3-9 14:44:04
    Very good map: http://arhusa.net/map0.html
    lipitor muscle problems Post At: 2006-3-9 15:13:38
    Very good map: http://lopnutmoiglaza.dipdns.org/map0.html
    naproxen Post At: 2006-3-9 15:28:38
    Very good map: http://depharm.com/map0.html
    FREE COUNT Post At: 2007-4-30 18:51:31

    c
    163 Post At: 2007-12-5 1:26:29
    a

    rgurppiqpy Post At: 2008-2-9 20:29:38
    Hello! Good Site! Thanks you! qloojgnjgwtqjv
    mXxTxyjEgzNRTvtRRp Post At: 2008-8-18 13:49:08
    aIxI5m
    Add Your Comment:
    Your Name:      
    Your Comment:
    Note: After you post comment,please refresh the browser to show you comment.
    Search In YeYan.CN:
     

    Home | Privacy Policy | Copyright Policy | Contact Us | Site Map
    Copyright © 2006 YeYan.CN, All Rights Reserved.