Corrupted characters in textarea [message #1067463] |
Mon, 08 July 2013 20:01 |
Pavlos Ponos Messages: 3 Registered: July 2013 |
Junior Member |
|
|
Hello all!
Nice to meet you!
I have wrote a java programm which compares strings with scope to find differencies between the validated text and the text i receive from my clients.
The languages that i want to compare the text are Slovak, Czech, Greek, Bulgarian, Turkish etc. Languages with special characters in general.
When i execute the program on my computer, everything is fine, the results in the text area i have created is correct, all the characters are shown correclty. I have encode the result in UTF-8 enconding.
I have tried to export this programm to a jar file but when i run it, the result in the textarea contains also corrupted characters.
During the execution of the programm, the code stores in an temp file (txt) the strings. I have open these txts and the text is shown correctly.
Is there any other way to export the code to a jar file and also avoid this issue?
Can somebody explain me why this happens? Meaning, the txts have the correct text but the text in textarea has corrupted characters.
Thank you in advance for your help.
|
|
|
Re: Corrupted characters in textarea [message #1067469 is a reply to message #1067463] |
Mon, 08 July 2013 20:37 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Pavolos,
It sounds like an issue of encodings but without more concrete details
of how you're loading, it's not possible to say what's wrong.
Definitely start with the debugger to see whether the text you're
loading is specifying the correct encoding for the byte to character
conversion and confirm that in-memory, the string representation is
correct...
On 08/07/2013 10:01 PM, Pavlos Ponos wrote:
> Hello all!
>
> Nice to meet you!
>
> I have wrote a java programm which compares strings with scope to find
> differencies between the validated text and the text i receive from my
> clients.
> The languages that i want to compare the text are Slovak, Czech,
> Greek, Bulgarian, Turkish etc. Languages with special characters in
> general.
>
> When i execute the program on my computer, everything is fine, the
> results in the text area i have created is correct, all the characters
> are shown correclty. I have encode the result in UTF-8 enconding.
>
> I have tried to export this programm to a jar file but when i run it,
> the result in the textarea contains also corrupted characters.
> During the execution of the programm, the code stores in an temp file
> (txt) the strings. I have open these txts and the text is shown
> correctly.
>
> Is there any other way to export the code to a jar file and also avoid
> this issue?
> Can somebody explain me why this happens? Meaning, the txts have the
> correct text but the text in textarea has corrupted characters.
>
> Thank you in advance for your help.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03376 seconds