Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
Discipulus second time; no questions.. o tempora o mores..
[1nickt]: I understood the first version ;-)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2017-11-24 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (354 votes). Check out past polls.

    Notices?