I have an application that pulls names from the active directory for the domain using ajax calls. Some names have Spanish characters (n tilde for example). I used the utf-8 character set to get the characters to correctly show the data on the form. I can successfully pull the names from the ajax call and load them into the form field. The problem I have is that when the form is posted to the server for the database update, the String cast corrupts the extended characters.
Is there a special String function to handle utf-8? What is the proper method to get the correct values posted to the Oracle tables?
I have done quite a bit of Java coding, but this is my first encounter with the extended characters. Any help will be appreciated.
Thanks.
Strings are UTF-16. I don't know what you mean by "the String cast". If you are explicitly converting a UTF-8byte[]to aString, you could use new String(byte array, Charset).