Genesys CTI User Forum > Genesys-related Development
Problem of characters encoding with AIL
cavagnaro:
Question, you are using tomcat?
florence_c:
Yes, we are using Tomcat 6.
If you want to suggest to set file encoding to cp1252, I will say that it is not possible for us : setting file encoding to UTF8 is a requirement, since our application is one among others into Tomcat webapps, and we can't afford changing this configuration option.
cavagnaro:
haha no sir, what I was going to suggest it to force UTF8 as default, as Tomcat default is another.
On the connector put this setting too
<Connector port="8080" URIEncoding="UTF-8"/>
on the server.xml file
I know you did add the parameter on the JVM options but by some reason sometimes it won't work.
florence_c:
Hello,
I just tried your suggestion, but it does not work.... :-[
Don't know if it's a clue, but setting file.encoding JVM option to 'cp1252' makes that stuff work, that's why I was talking about this in a previous post :P
Let me expose my own analysis of the issue:
The AIL method 'ailFactory.getApplicationInfo().mOptions' returns CME options as String (that's the result of the getClass method). But by setting JVM option to UTF8, all the String objects are UTF8 objects. Since the original object is cp1252 encoded, and the final one is UTF8, you must do something with encoding to make it work. That's why I think AIL method does not care about the encoding.
Do you know if there is a way to get CME options with another method ? or if it's possible to force AIL encoding ?
cavagnaro:
So you can receive on CP1252, so far that works, but now you want to convert it to UTF...so you can do something like this:
http://www.jguru.com/faq/view.jsp?EID=137049
Just thinking loud
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version