For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > August 2005 > CGI character translation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CGI character translation
Thom Hehl

2005-08-02, 4:59 pm

This isn't really off-topic, I promise...

I am running a perl CGI script that launches a java program. This java
program writes output files that are delimited using what I believe to
be a unicode character. On most editors it looks like an upside-down
question mark, which I believe is correct. On some editors, it shows as
a degree symbol. This character is represented by the hex pair 0xc2a1.
Here is the character '¡'.

Now here is the problem. When I test my java program everything is
great. When I test the perl script to launch the java program, all is
still well. When I run my perl script through CGI, though, it replaces
each occurrence of the above character with ??. I cannot understand why
the CGI is interfering with file output from my program. This is not
going through display, but is directly writing this file. Anyone have
any ideas?

Also, if anyone can suggest a better list, I'd appreciate that too.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com