Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Corrupted characters in textarea
Corrupted characters in textarea [message #1067463] Mon, 08 July 2013 20:01 Go to next message
Pavlos Ponos is currently offline Pavlos PonosFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Plugin - save participant project save
Next Topic:shortcut key for copy qualified name
Goto Forum:
  


Current Time: Thu Jan 23 21:42:07 GMT 2025

Powered by FUDForum. Page generated in 0.03376 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top