Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Is there some universal Unicode+UTF8 switch?

by jcb (Parson)
on Sep 01, 2019 at 23:25 UTC ( [id://11105397]=note: print w/replies, xml ) Need Help??


in reply to Is there some universal Unicode+UTF8 switch?

  • it contains unicoded Cyrillic literals

    So your script itself is in UTF-8?

  • it outputs unicoded Cyrillic

    And you are selecting UTF-8 output... are you correctly declaring the output to be UTF-8 in the HTTP headers?

  • it queries for unicoded JSON Cyrillic

  • it receives and handles unicoded JSON Cyrillic (not UTF8-encoded sequences) like this: https://ru.wikipedia.org/w/api.php?action=query&format=json&formatversion=2&list=allusers&auactiveusers&aufrom=Б

    This last item raises a big question: If the JSON Cyrillic is not UTF-8, what encoding is it in? You may need the Encode module to perform character set conversion prior to JSON decoding.

  • Comment on Re: Is there some universal Unicode+UTF8 switch?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-23 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found