Sven Schrodt: Text von ASCII in UTF-8 umwandeln...

Beitrag lesen

Hallo,

so ganz verstehe ich den Sinn nicht, denn ein ASCII- String ist doch _immer_ ein gültiger UTF-8 String...

Auszug aus RFC 2279 "UTF-8, a transformation format of ISO 10646":

Character values from 0000 0000 to 0000 007F (US-ASCII repertoire) correspond to octets 00 to 7F (7 bit US-ASCII values). A direct consequence is that a plain ASCII string is also a valid UTF-8

string<<

Gruss Sven