473,480 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL statement to store and retrieve 2byte letters like Japanese characters

34 New Member
How do I store and retrieve 2byte letter like Japanese character in Oracle SQL?

What are the SQL statements?

Hope you can help me.

vbie
May 29 '08 #1
8 4313
debasisdas
8,127 Recognized Expert Expert
you need to change NLS_CHARACTERSET.
May 29 '08 #2
vbie
34 New Member
well how do I do that pls?
May 30 '08 #3
vbie
34 New Member
you need to change NLS_CHARACTERSET.

well, how do I do that pls?
May 30 '08 #4
amitpatel66
2,367 Recognized Expert Top Contributor
well, how do I do that pls?
You can try using CONVERT function for converting one chracter set to another.
Check CONVERT FUNCTION
Jun 1 '08 #5
vbie
34 New Member
Thank you.

I have, for example, an oracle table with the ff. data structure:

Column Data Type
-----------------------------------------
Code VARCHAR2
Desc VARCHAR2

Now, I inputted data as follows:

Code Desc
------------------------------------------
01 Common
02 ?-?¿?3?¿ --> *Note
03 General

*Note: These characters were originally typed as japanese characters, but when saved they looked that way.

So then, in applying your suggestion of CONVERT function, I tried this:

SELECT CONVERT( DESC, 'US7ASCII', 'JA16SJIS') FROM SAMPLE

*JAI6SJIS is the character set for Japanese.

However, the result is this:

Code Desc
----------------------------------------
01 Common
02 ?-???3??
03 General


I hope you can help me further.



vbie
Jun 2 '08 #6
vbie
34 New Member
What is JA16SJIS ?

That represents which chracterset ?
Good afternoon.

I was researching about your suggestion to change the NLS_CHARACTERSET and to determine what my database has, I issued this command:

SELECT * from NLS_DATABASE_PARAMETERS
where PARAMETER in ( 'NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET' )

And I got this result:

Parameter Value
--------------------------------------------------------------------------------
NLS_CHARACTERSET JA16SJIS
NLS_NCHAR_CHARACTERSET AL16UTF16


But I don't know how to make a correct SQL command applying your suggestion, so I researched some more and found lots of info about encoding sets, etc..

Then I tried the CONVERT function suggested by the other moderator and tried to combine your suggestion with his.

I still can't save or retrieve a japanese character like kanji or hiragana into our system using SQL.


vbie
Jun 2 '08 #7
vbie
34 New Member
You can try using CONVERT function for converting one chracter set to another.
Check CONVERT FUNCTION
Thank you Sir/Ma'am for giving some ideas.
Jun 3 '08 #8
debasisdas
8,127 Recognized Expert Expert
well, how do I do that pls?
try to do this

STARTUP MOUNT exclusive RESTRICT
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
ALTER SYSTEM SET AQ_TM_PROCESSES=0;
ALTER DATABASE OPEN ;
update props$
set value$='UTF8'
where name in ('NLS_CHARACTERSET', 'NLS_NCHAR_CHARACTERSET');
commit;
SHUTDOWN IMMEDIATE;
Jun 3 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

8
10467
by: Daniel | last post by:
I'm trying to make a site work for japanese characters. It works fine except for the alerts in javascript. The characters are stored in unicode, as this; 'コミック全巻配' Those unicode characters...
1
3133
by: Sriv Chakravarthy | last post by:
I am trying to use xerces-c SAX parser to parse japanese characters. I have a <?xml... utf-8> line in the xml file. When the parser encounters the jap characters it throws a UTFDataFormatException....
7
5723
by: Daniel | last post by:
I`m trying to show japanese characters in an alert, like; alert('実装されていませ'); This doesn't work as shown in this post:...
1
1933
by: dalei | last post by:
I like to make foreign letters to appear in the textarea. For instance, when typing the letter 'a' on the keyboard, the Japanese letter &#+12449; would appear in the textarea. Could somebody...
3
1927
by: Mitchell Thomas | last post by:
I recently created a new database in Access 2002. I took data from an access 97 database converted one of the tables to access 2002 and then imported it into a new table in access 2002. but for...
2
3680
by: Joseph | last post by:
Hello. I have this problem. See I have a transformed XML file and I checked its contents prior to outputting it to excel file via responseset. here is the gist of the code: XmlReader reader =...
11
4713
by: prats | last post by:
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using QT from python. I am able to take input...
4
5836
by: DL | last post by:
Hi, Our school has an application in which : - Teachers enter comments through a web interface built in asp (not asp.net). - Comments are stored in a SQL server 2000 (in a nText field) -...
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6730
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...
0
6873
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...
0
5321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4471
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...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
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 ...
0
174
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...

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.