Can I use CP1252 for Windows?

I would like my entire toolkit to use UTF-8 , but find that some tools on Windows seem to use CP1252 (which seems to be Windows-dependent). Does this produce a conclusion that is incompatible, and if so, at what code points? If so, can I do something about this?

(I do not quite understand the problem, so I would be grateful for the basic education on these encodings).

+3
source share
5 answers

The hard coding tool for code page 1252 on Windows is very unlikely. It is much more likely that this will be the default codepage on your computer. 1252 is used in Western Europe and America. It is configured on the control panel, regional and language settings. They used different names for this, on Win7 they are on the tab "Administrator", "Change system language".

, , . - . Notepad ( " + " - , Ansi) C/++. . , , . Google " " .

+6

CP1252 UTF-8 < 128. . , , .

Windows , , 1252 US Windows. . UTF-8 Windows. ( , ).

+5

- : , Unicode ( !)

: , , UTF-8. "". , Python 3, Unicode. , Unicode ( ) . , (, Mark Pilgrim chardet, Mozilla). , , .

+5

Windows UTF-8 . , , , , .

+2

UTF-8 Windows, . UTF-8 / , .

-, , - Sisyphus - , Unicode.

- Unicode, UTF-16 / UTF-8 /. , fopen UTF-8.

Windows UTF-8, , , ASCII, UTF-8 ( Unicode , , / ).

BTW, , , Windows .

, , , blog.i18n.ro

+1
source

Source: https://habr.com/ru/post/1726288/


All Articles