Accented characters
Hello everybody,
1. I have JSC2 Rev 1 instaled in XP in spanish. The first thing I found (and disliked) is that, at install time, I didn磘 have the choice to select a language and JSC was installed in Spanish (using a really bad translation).
2. I'm using an Oracle 10g rel 2 database to hold my data.
3. JSC read and renders correctly accented characters (like Men?. But every time it writes the word to the database, the accented character gets really screwed up (like Men煤). An every time you rewrite it, it gets worse! (like Men脙茠脝鈥櫭冣€毭偮?
4. I know the database is ok because I have other apps using it without this huge problem.
So, how can I solve this? The problem is that I'm developping an intranet app for a big company., noy just testing.
Thanks a lot for any help
A.Guriatti
[836 byte] By [
AGurisatti] at [2007-11-26 9:08:02]

# 1
Even though the locale was automatically selected during installation, creator can be run using other locale settings:
http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/2/Install ation_ReleaseNotes_2_1-en.html#starting_IDE
--locale language[:country[:variant]]
Use the specified locale. The supported languages are
English (en), Spanish (es), Korea (ko), Japanese (ja), French (fr), and Simplified Chinese (zh_CN).
For example, from the %SystemDrive%:\Program Files\Sun\Creator2\bin directory, type:
creator.exe --locale en
Does that help?
# 2
Well, after working and cursing in a very loud voice for hours, I found what is going on (Its like a fairy tale!). If you include a "File Upload" component to your page, your accented vowels (at least using spanish) get screwed up!
After a few more hours and cursing even louder I found a workaround for the fu&%#!!ing problem: put the darn "File Upload" component and the components that use its returned value in a separate "Form" component (in the same page).
This must be a bug and I'm reporting it.
Anyhow my friend, thanks for trying to help me.
AG
# 3
Hi AGurisatti
I have 2 fields to store in a table, one of them is a text area and the other one is a file upload component, as you posted, the accented characters get screwed up when they are stored, I understand what you said about placing the fileupload component in a different form, but I don't understand what you mean by "the components that use its returned value", you mean the submit button?
I already made a test and placed the fileupload component in a different form (form2) and the textarea and button in form1, but it keeps storing wrong values with the accented characters, Am I missing something? or what did I do wrong?
Thank you for your help.
Yesenia
# 4
Hi,I have tried with two forms, form inside a form, with different panels and with many combinations, no success.I hope this bug will be fixed very soon.regards Tomppa
enska at 2007-7-6 23:23:44 >

# 5
I tested fileupload component in Netbeans 5.5 + Visual web pack and accented characters get NOT screwed up when they are stored. In Netbeans I had all components in same form, no problems.Are we going to get this working in JSC, Creator Team?ThanksTomppa
enska at 2007-7-6 23:23:44 >
