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)