Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^6: Is there some universal Unicode+UTF8 switch?

by VK (Novice)
on Sep 02, 2019 at 12:46 UTC ( [id://11105440]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Is there some universal Unicode+UTF8 switch?
in thread Is there some universal Unicode+UTF8 switch?

> I could write "Rīga" in the text of an article, but not in its title
The site itself also prepares us to the Perl way of thinking? :-)

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

Replies are listed 'Best First'.
Re^7: Is there some universal Unicode+UTF8 switch?
by haj (Vicar) on Sep 02, 2019 at 13:12 UTC
    In the sense of: Don't blame Perl for questionable decisions by Perl programmers: Definitely yes!
      It might be unpleasant to you, but he's mostly correct. This site is indeed a pretty good illustration of the problem. It doesn't use utf-8 at all, it uses Windows-1252. It's actually the browser that does html-escaping (both ways). As for why? Presumably because updating Perlmonks to use utf-8 would be too difficult for anyone to bother.

        All I can say is "it is not Perl's fault".

        Using Windows-1252 encoding is weird, but not incorrect. If your desired content type is text/html, then the whole set of Unicode characters is available for you not only in UTF-8, but in any encoding supported by the browsers. Both HTML::Entities and Encode can do the necessary mapping of Unicode characters to Entities which are then plain ASCII strings and understood by the browsers.

        I'm not going to defend the source code running this site either. I consider it pretty stale, but you can let software rot in about any programming language. In Perl, of course, the software will continue to run and run and run, as years go by.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found