cancel
Showing results for 
Search instead for 
Did you mean: 

Xcelsius and charset/encoding

Former Member
0 Kudos

I wonder if Xcelsius works in UTF-8 or in ISO-8859-1...

Let me explain how we work :

- we put a "input text" component on the canvas

- the value from the component is inserted into a cell of the Excel spreadsheet

- the value is transmitted from the SWF to a JSP page (through the GET method with the URL button component)

When the value has special characters like é, à or ç... it does not display well in the JSP page.

I try to convert to UTF-8, to ISO-8859-1... but still I am not able to keep the characters correct from start to end.

Thanks for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Xavier,

Not sure if your problem solved.

I am now facing the same problem you stated here. Sending some special characters like ห�?�?วย to JSP page but then cannot convert to proper charset.

Do you have any update on your post here?

Would appreciate if you can comment your workaround.

Thanks!

arijit_das
Active Contributor
0 Kudos

in the jsp page, before sending/receiving any parameter, use

response.setCharacterEncoding("UTF-8");

request.setCharacterEncoding("UTF-8");

then try to print the parameters accepted in the jsp page and see if they are displayed properly or not.

Former Member
0 Kudos

Hi Arijit,

Thanks for your response.

I have tried and applied some further statements from your suggestion, and it works!

Here is what I did:

Set request encoding to ISO-8859-1 by request.setCharacterEncoding("ISO-8859-1");

Convert string from ISO-8859-1 to UTF-8 using new String(sContent.getBytes("ISO-8859-1"), "UTF-8");

And then write to output file using new BufferedWriter(new OutputStreamWriter(new FileOutputStream(strFile), "UTF-8"));

Thanks again!

Cheers.