Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Encoding/decoding for korean strings

by Your Mother (Archbishop)
on Jun 15, 2016 at 19:27 UTC ( [id://1165783]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Encoding/decoding for korean strings
in thread Encoding/decoding for korean strings

Every single layer has to agree upon what it's looking at from the input (JSON is always UTF-8) to the parsing to the writing to the DB to the fetching from the DB to the UI. So if the characters are being corrupted, it might be because your DB is actually expecting EUC-KR or something. In that case you might try encode("EUC-KR", $utf8_string); check your DB schema and see what it expects. But the problem might be in the UI uptake or output or your DB might be incorrectly configured/specified.

Update: didn't see your reply before I replied. I might look at this later but it's a lot to digest. :(

Replies are listed 'Best First'.
Re^4: Encoding/decoding for korean strings
by siva_pm (Novice) on Jun 15, 2016 at 19:56 UTC
    So I have my db accepting these korean characters and can see them in korean in the tables too. I cannot use EUC-KR as I might have to accept all kinds of languages as input (one byte/two byte)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-20 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found