java - what are non-unicode applications -


as know, in windows system, can set locale language non-unicode programs in "control panel\clock, language, , region". local language mean application? since understanding, application compiled binary executable file, contained machine code instructions , no data, how character encoding affect running?

one guess if executable file contain literal strings in code segment, use internal charset encoding them. if charset not unicode, display garbage. not internal charset fixed one? in java, java spec defines internal encoding utf-16.

hope can answer questions,

thanks.

windows has 2 methods programs can talk it, called "ansi api" , "unicode api", , "non-unicode application" 1 talks windows via "ansi api" rather "unicode api".

what means string application passes windows sequence of bytes, not sequence of unicode characters. windows has decide characters sequence of bytes corresponds with, , control panel setting you're talking how that.

so example, non-unicode program outputs byte value 0xe4 on pc set use windows western display character ä, whereas 1 set hebrew display character ה.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -