How to deal with Chinese in a Perl program on a mac
October 14, 2011 2:35 AM Subscribe
Working with Chinese and English text, in a Perl programme, on a Mac. I feel like an idiot.
posted by stonepharisee to computers & internet (5 answers total)
I need to write a Perl programme on my mac to shuffle some Chinese sentences. None of Aquamacs, TextEdit, Pages or Word seems to provide support. Googling unicode support provides a tsunami of information that doesn't seem to help.
Listing the various combinations I have tried would be a monument only to human doggedness and stupidity. They all result in any combination of files in which the Chinese is corrupt, files which Perl thinks are binary and illegal, files which terminal thinks are binary, or similar.
To summarize the challenge, If I could do the following, I would be happy:
$string = "两个艺术家交换了签名。";
print $string, "\n";