Home
TeamSite
Handling Special Characters
Sailesh
Hi,
Facing an issue while creating images using Text to Image functionality. The problem appears in case of special characters. Where ever there are 'é' or other characters. The output is junk characters.
If I pass these characters directly from commandline it works fine, but if I try the same through my IPL file while calls the java programme which creates the image it give this problem. My understanding is that when we pass the value as argument, it convert the special character to junk.
I need urgent help on this.
Thanks
Find more posts tagged with
Comments
hitc
Some characters cannot be displayed in the url or in a form request.Why?because of the ascii(American Standard Code for Information Interchange),the ascii is coded on 7bits,meaning you have a range from 0 to 127 that contains all "normal" characters,the special ones are not in the range 0-127.The special characters are coming with the extended ascii,coded in 8bits and offering a range from 0 to 255.This is called the iso-8859 norm,the special charaters are in the range from 128 to 255.
You must encode/decode the values of your fields.Of course when you post you see that the characters are automatically encoded by the browser but it is better to encode/decode the values yourself because some encoded values can have different signification.
There is a lot of way to do that, java classes,the encode/decode javascript function,there is package in perl that do the trick.
This is a common problem,I'm sure you can find many exemples on google to help you.