Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re (tilly) 3: I use Perl at work for

by Lexicon (Chaplain)
on Apr 26, 2001 at 05:39 UTC ( #75688=note: print w/ replies, xml ) Need Help??


in reply to Re (tilly) 3: I use Perl at work for
in thread I use Perl at work for

Perl was doing really great until I tried to type a Japanese string directly into my source file. I can't remember the exact string, but something like:

print "これは日本語ですよ!\n";  # This is Japanese Text, btw

would die miserably because the interpreter saw the japanese characters one byte at a time, and eventually found a ". I'm not honestly sure that was what was going on, but the same code with English output was fine. use locale; and use utf8; only changed what the errors were. Also, piping Japanese text in and out through forms and text files works great too (so far).

This was in PerlScript in IIS as well, I suppose that might have had something to do with it. I can at least say that the errors I received made the least sense of anything I'd ever seen. ;)

I might give Ruby a look though...lots of Japanese documentation for them will only make my life easier. You thought explaining Regular Expressions in English was hard?

-Lexicon


Comment on Re: Re (tilly) 3: I use Perl at work for
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2014-10-02 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (43 votes), past polls