Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 22nd, 2008, 11:15 AM
Authorized User
Join Date: Aug 2006
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in saving unicode using ajax


my question is that i have to let the user to input chinese characters from the text box through ajax request and then save in database.
when i trying to save the data into database, it save all the chinese characters in a series of question marks(??????). this thing is happen when i use GET method in my ajax request.

after few attempt, i try to use POST method in the ajax request and it seem can save the chinese characters. but.....now the problem is....when i type in "Œß ˆÀGOOD AFTERNOON" tis two words, it trim my space between this two words and save the ŒßˆÀ (GOODAFTERNOON) (without space) into database. chinese or english characters also same..(i didnt put in any triming space code)

can anyone tell me that what is this problem and how to solve it? plz help.

p/s: using asp + ajax

please help
thanks in advance

Old July 23rd, 2008, 02:31 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Almost certainly an encoding issue, a clash between stated encoding and actual for example; if you show some of the process we maybe able to help. How is data collected, how is it sent, how is it received and processed?


Joe (Microsoft MVP - XML)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp datetime problem with non-Unicode languages neon20 Classic ASP Professional 4 March 8th, 2007 04:03 AM
Asp datetime problem with non-Unicode languages neon20 Classic ASP Databases 0 March 6th, 2007 07:49 AM
Asp datetime problem with non-Unicode languages neon20 ASP.NET 1.0 and 1.1 Professional 0 March 5th, 2007 11:50 AM
problem in unicode chandanbhakuni Classic ASP Databases 1 September 22nd, 2006 10:22 AM
Unicode ASP FIle Problem tks_muthu Classic ASP Databases 2 February 25th, 2005 06:45 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.