The full answer to this question depends on many factors, such as the range of encodings used by different ascending systems, and how much your users will follow the instructions for entering a sequence of character characters in text fields and how skilled they will be in obscure key combinations to enter sequences of magic characters .
, . "" (), , UTF-8, UTF-16, iso8859_5 koi8_r. , , , , .
, ISO-8859-15, Mac_Roman, UTF-8, UTF-16LE UTF-16BE. , 'โฌ', U + 20AC , :
- byte ['\ xa4'] iso-8859-15
- bytes ['\ xe2', '\ x82', '\ xac'] utf-8
- bytes ['\ x00', '\ xac'] utf-16be
- bytes ['\ xac', '\ x00'] utf-16le
- byte ['\ x80'] cp1252 ( "Windows ANSI" )
- byte ['\ xdb']
- iso-8859-1 . iso-8859-15 - iso-8859-1.
- U.S. , , , . (, , 3% .)
, , , , , , . , "\ xa4" iso-8859-15 Euro iso-8859-1 cp1252 UTF-16le "ยค", "ยง" UTF-16, U + A4xx Yi Syll, U + 01A4 LATIN SMALL LETTER OI. UTF-8. Yi, .
Python 3.x, 7.2.3. , Python. , :
>>> for e in ['iso-8859-1','iso-8859-15', 'utf-8', 'utf-16be', 'utf-16le', \
... 'cp1252', 'macroman']:
... print e, list( euro.encode(e, 'backslashreplace'))
, , , , "โฌ" , - . . , 'โฌ โฌ'; , .