Thread encode fallback character format (2 answers)
Opened by Kuerbis at 2015-04-28 11:57

Kuerbis
 2015-04-28 11:57
#180863 #180863
User since
2011-03-20
938 Artikel
BenutzerIn
[default_avatar]
Hallo,

gibt es für encode ein bestimmtes Format des "fallback-characters", welches man bevorzugen sollte, oder ist das Geschmackssache?

Code (perl): (dl )
1
2
$ascii = encode( "ascii", $utf8, sub{ sprintf "<U+%04X>", shift } );
$ascii = encode( "ascii", $utf8, sub{ sprintf "\x{%04X}", shift } );

View full thread encode fallback character format