473,803 Members | 3,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Japanese in MySQL

Hi,

I am developing a vocabulary trainer.
The languages I want to support are German and Japanese.
When I try to store Japanese characters in my mysql database, I do not
get the correct characters. The entry of the field is "???" instead of
the Japanese character. I tried to store the character with my java
application and with the MySQL Control Center. I know I have to
configure the mysql database. But I do not know how. I created my
database with the following sql statements:

CREATE TABLE vocab
(
Japanese VARCHAR(100) CHARACTER SET utf8,
German VARCHAR(100) CHARACTER SET utf8
);

But this did not work.
I hope you can help me, because I have a lot of Japanese words to
learn ;-)

Ciao
Keitaro
Jul 19 '05 #1
3 5155
How can you store Japanese as UTF 8? Japanese is a two bit character set,
so each Japanese character will take 2 bits, as opposed to Latin, which
takes one bit. So you'd have to explicitly set that field to accomodate
that by choosing the right character set.
"Keitaro" <ke*******@yaho o.de> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
Hi,

I am developing a vocabulary trainer.
The languages I want to support are German and Japanese.
When I try to store Japanese characters in my mysql database, I do not
get the correct characters. The entry of the field is "???" instead of
the Japanese character. I tried to store the character with my java
application and with the MySQL Control Center. I know I have to
configure the mysql database. But I do not know how. I created my
database with the following sql statements:

CREATE TABLE vocab
(
Japanese VARCHAR(100) CHARACTER SET utf8,
German VARCHAR(100) CHARACTER SET utf8
);

But this did not work.
I hope you can help me, because I have a lot of Japanese words to
learn ;-)

Ciao
Keitaro

Jul 19 '05 #2
How can you store Japanese as UTF 8? Japanese is a two bit character set,
so each Japanese character will take 2 bits, as opposed to Latin, which
takes one bit. So you'd have to explicitly set that field to accomodate
that by choosing the right character set.
"Keitaro" <ke*******@yaho o.de> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
Hi,

I am developing a vocabulary trainer.
The languages I want to support are German and Japanese.
When I try to store Japanese characters in my mysql database, I do not
get the correct characters. The entry of the field is "???" instead of
the Japanese character. I tried to store the character with my java
application and with the MySQL Control Center. I know I have to
configure the mysql database. But I do not know how. I created my
database with the following sql statements:

CREATE TABLE vocab
(
Japanese VARCHAR(100) CHARACTER SET utf8,
German VARCHAR(100) CHARACTER SET utf8
);

But this did not work.
I hope you can help me, because I have a lot of Japanese words to
learn ;-)

Ciao
Keitaro

Jul 19 '05 #3
How can you store Japanese as UTF 8? Japanese is a two bit character set,
so each Japanese character will take 2 bits, as opposed to Latin, which
takes one bit. So you'd have to explicitly set that field to accomodate
that by choosing the right character set.
"Keitaro" <ke*******@yaho o.de> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
Hi,

I am developing a vocabulary trainer.
The languages I want to support are German and Japanese.
When I try to store Japanese characters in my mysql database, I do not
get the correct characters. The entry of the field is "???" instead of
the Japanese character. I tried to store the character with my java
application and with the MySQL Control Center. I know I have to
configure the mysql database. But I do not know how. I created my
database with the following sql statements:

CREATE TABLE vocab
(
Japanese VARCHAR(100) CHARACTER SET utf8,
German VARCHAR(100) CHARACTER SET utf8
);

But this did not work.
I hope you can help me, because I have a lot of Japanese words to
learn ;-)

Ciao
Keitaro

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9079
by: David Thomas | last post by:
Hi there, a while ago, I posted a question regarding reading japanese text from a text file. Well, since I solved the problem, I thought I'd post my solution for the benefit of other people with the same problem. The plan was to make a script to read and display japanese text. I will use it for making a japanese proverb script and for a japanese language study script.
0
1818
by: abarr03 | last post by:
I am using cold fusion to make a small custom website using mysql to store the information a user inputs. I want it to be able to save japanese and unicode text, but whenever I enter any it comes back as garbage. Is there anything special I need to do to configure mysql to use unicode? Thanks! -Adam -- MySQL General Mailing List
0
1345
by: Keitaro | last post by:
Hi, I am developing a vocabulary trainer. The languages I want to support are German and Japanese. When I try to store Japanese characters in my mysql database, I do not get the correct characters. The entry of the field is "???" instead of the Japanese character. I tried to store the character with my java application and with the MySQL Control Center. I know I have to configure the mysql database. But I do not know how. I created my...
1
4824
by: Sven Hanefeld | last post by:
Hi, who is able to help. I want to translate my whole website into japanese language. www.nord-com.net/hanefeld What do I have to do except finding a japanese guy for the translation. Do I need to install a japanese operating system. What kind of editor is nessasary? With the unicode system I can translate Katakana and Hiragana, but no Kanji. And it is very awkward
21
2513
by: Doug Lerner | last post by:
I'm working on a client/server app that seems to work fine in OS Firefox and Windows IE and Firefox. However, in OS X Safari, although the UI/communications themselves work fine, if the characters getting sent back and forth are in Japanese they come back from the server "moji bake" (corrupted). Anybody have any ideas why this might work differently in Safari than in Firefox or IE?
0
2010
by: marcin | last post by:
I have problems with inserting Japanese chars into MySQL database. This operation results in two completetely different strings that I can see via phpMyAdmin: $word: SELECT word FROM table; INSERT $word INTO table; Both commands are executed direclty via PHP, phpMyAdmin shows the original word (inserted into table via phpMyAdmin) correctly and a wrong copy (f.e. %&c/#....) of word inserted via PHP.
2
1714
by: Shinya | last post by:
I am using phpMyAdmin to see japanese text in side of the table. However, I can only see menu items in japanese but the content is somehow garbled. MySQL - 4.1.21 phpMyAdmin - 2.8.2.1 db is running on the rental web server so i have limited control.
1
2867
by: sandeepindia | last post by:
I m using PHP Version 4.3.2 & Mysql version 3.23.58(No collation etc). My site is in shift JIS encoding. I've both japanese users & russian users. They have entered their member profile in their language. So I have over 5000 member data both in russian & japanese. Now my russian member profile page is showing junk characters. if I change the encoding to cyrillic(window-1251) then russian character are ok, but japanese characters get junked. I...
4
2783
by: chemlight | last post by:
I'm having some troubles with the japanese character set and mysql. I have a list of vendors with their languages in a table. The language list for Japanese has been stored in Japanese. When I view the tables in phpMyAdmin, I see the proper Japanese characters. They are stored using utf8_unicode_ci. When I create a query, and try to display them on an HTML page, I only get question marks. The page is displayed using utf8. I don't know...
0
10542
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10309
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10289
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6840
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3795
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2968
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.