Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7491161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:55:59+00:00 2026-05-29T15:55:59+00:00

I have an application that pulls names from the active directory for the domain

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:55:59+00:00Added an answer on May 29, 2026 at 3:55 pm

    Where is this “cast” coming into play?

    I am not sure what your application is but there a couple of places where you could be mangling the characters. First, assuming this is some sort of Java EE app make sure that you have set the request encoding in the servlet. See the setCharacterEncoding method of HttpServletRequest. You should use “UTF-8” there.

    Second, you should make sure that you have the accept-charset=”UTF-8″ attribute set on the form variable. (Note – in my experience this rarely is a problem if the page is UTF-8 encoded to begin with but better safe than sorry).

    Last make sure that you have specified any encoding options if neccessary for the connection to the database. I don’t use Oracle so I don’t know but often you’ll need to specify to use “unicode” or “utf-8” or the like somewhere where you create the connection.

    I would try them in order because it’s possible (likely) the first itself might fix the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited an application that pulls messages out of an MSMQ does some
I have an iPad application that pulls in all of its data from an
I'm building a small application that pulls statistics from an API I have no
I have application that brings response via Ajax and creates 5-20 new jQuery click
I have a Silverlight 4 app which pulls entities down from a database using
I do not want Auditing or History tracking. I have an application that pulls
I'm writing an application updater that pulls installation package from our distribution web site
I have a console based application which pulls files from a database and outputs
I have a C# console application which simply pulls information from a Sql Server
I have created an application that searches a directory and loads all of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.