Solved

Insert Japanese characters into MySQL database. I have to use "backslash" after Some "Kanji" symbols but which ones ??

Posted on 2003-10-22
5
916 Views
Last Modified: 2008-02-01
Hi,

I am trying to insert some Japanese text into a MySQL database. My code and everything is working just fine, but I found that I have to put "backslash" after some of "kanji" symbols because some of them seems to have "backslash" and "semicolon" in their second bytes. To avoid character transformation, I have to use escape symbol "backslash" after that symbol.

I need to find a list of kanji symbols which backslash have to be used... Or some kind of javascript / vbscript / ASP code that reveals the second byte of a double-byte character...

Any help will be appreciated.
0
Comment
Question by:Buraque
5 Comments
 
LVL 1

Author Comment

by:Buraque
ID: 9604622
Well, I have made a further search on the net and I found that I need PHP's  [ addslashes(string) ]   equivalent of ASP or MySQL...
0
 
LVL 3

Expert Comment

by:prady_21
ID: 9604894
As long as i know, you need not do anything like adding backslashes in front of kanjis
If  the column is binary, where the Japanese characters will be stored, i think it should work

if you can tell more abt the errors, i think it should help
0
 
LVL 17

Accepted Solution

by:
Squeebee earned 500 total points
ID: 9606256
You could always just designate the column's character set to the Japanese one, in which case you should have less problems:

http://www.mysql.com/doc/en/Charset.html
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This guide whil teach how to setup live replication (database mirroring) on 2 servers for backup or other purposes. In our example situation we have this network schema (see atachment). We need to replicate EVERY executed SQL query on server 1 to…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
A short film showing how OnPage and Connectwise integration works.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now