Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: How do I convert a sequence of hexes (D0 D6) to Chinese characters (中)?

by Anonymous Monk
on Jun 07, 2011 at 10:18 UTC ( #908444=note: print w/ replies, xml ) Need Help??


in reply to Re^4: How do I convert a sequence of hexes (D0 D6) to Chinese characters (中)?
in thread How do I convert a sequence of hexes (D0 D6) to Chinese characters (中)?

I do not get the character .... Any idea of what is going wrong?

Your thing responsible for drawing characters doesn't understand utf8.

Neither does mine :) but od -tacx1 shows the correct bytes

0000000   d   8   -  cr  nl
          Σ   ╕     \r  \n
        e4 b8 ad 0d 0a
0000005


Comment on Re^5: How do I convert a sequence of hexes (D0 D6) to Chinese characters (中)?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://908444]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2015-07-07 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls