473,756 Members | 8,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot Store Chinese Characters In Oracle 9.2 Database

1 New Member
Hi,

I'm having trouble localizing my Oracle 9.2 / ASP web application for our Chinese-speaking users.

My Oracle 9.2 Database has NLS_NCHAR_CHARA CTERSET set to AL16UTF16.

I've set up a test table thus:

Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE "TBL_TEST_CH"
  2. (
  3. field1                     NVARCHAR2(40),
  4. field2                     NVARCHAR2(40)
  5. )
  6. /
  7.  
I have the chinese character set installed on my database / web server (same box), as well as a test client machine. I can see chinese characters in my web browser, and can enter them in a test ASP page I've set up. When I execute an insert statement via ADO, the insert statement seems to work, but the result is that the data seems to be stored as upside-down question marks.

I thought perhaps the data was being somehow scrambled between the web app and the database, so I set up an external table import the chinese data from a unicode text file:
Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE kenny.ch_import
  2.     (
  3.     FIELD1        NVARCHAR2(255),
  4.     FIELD2        NVARCHAR2(255)
  5.     )
  6.     ORGANIZATION EXTERNAL (TYPE oracle_loader
  7.     DEFAULT DIRECTORY ext_dat_dir
  8.     ACCESS PARAMETERS
  9.     (RECORDS DELIMITED BY ":"
  10.     FIELDS TERMINATED BY "~"
  11.     missing field values are null)
  12.     LOCATION (ext_dat_dir:'test_ch.txt'))
  13.     reject limit unlimited
  14. /
  15.  
However, when I query the data in the external table using my web application, it comes back with garbage like "ÿþ1" and the like.

I'd really appreciate any suggestions on what I could do next to determine exactly where the problem lies. I've not been able to convince myself that the database is correctly storing the chinese character data, but I appreciate equally that the problem could lie elsewhere.

Thanks in advance,

Kenny McEwan.
Jan 23 '07 #1
0 4103

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

Similar topics

1
4766
by: Jeff | last post by:
Having a problem displaying both german and chinese characters from a UTF-8 database on the same *.jsp page. Can make Chinese characters appear correctly by including the following lines: <%@ page pageEncoding="UTF-8" %> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
1
2061
by: David A. Caballero J. | last post by:
I have a 3 layer system, SQL Server 2000 database, COM+ dll's (VC++ 6) and ASP frontend, this system has been in production for quite some time using english, spanish and portuguese versions. Now I've been asked to test the system to function with Simplified chinese. The development of the system was outsourced and we don't have communication with the company (some sort of legal problems i think). Now, I've been reviewing the code and...
1
6469
by: bjwang | last post by:
Hello wisers, We are testing a system which is developed on top of Oracle 9iAS. The client PCs are using Internet Explorer to access the system. We are sure that the Oracle 9i database server is set to use Unicode. The Oracle 9i database server and Oracle 9iAS server are now running on English Windows 2000 server. With client PCs running on traditional Chinese Windows 2000 or traditional Chinese Windows XP, via Internet Explorer we put...
0
2343
by: Larry Neylon | last post by:
Hi, I'm writing a vbscript application that reads UTF-8 XML containing Chinese characters. Any suggestions how to store these characters in MySql 4.0.x ? Do I need to set a special encoding such as Big5 on the database ? Does MySql support storing UTF-8 ? If so what data types / encoding do I need to use ?
0
2365
by: edmondlch | last post by:
I am using a VB 6.0 application programs to insert some chinese traditional characters into the MS SQL Server 6.5 database. It is normal when the application running in the server locally. However, when I remote run the application, the chinese characters will appear in ????. Any solution for solving this problem? -- Posted via http://dbforums.com
3
2001
by: Antonio | last post by:
Hi, I want to read an html page written in chinese and store it in a file having extension .aspx , I'm not sure where is the problem, I use the following lines of code: String sAddress = "http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_zh&trurl=http://www.etantonio.it/EN/index.aspx" ; WebRequest req = WebRequest.Create(sAddress); WebResponse result = req.GetResponse();
8
11983
by: pabv | last post by:
Hello all, I am having a few issues with encoding to chinese characters and perhaps someone might be able to assist. At the moment I am only able to see chinese characters when displayed as part of a datagrid. When an input textbox is displayed it does not display chinese characters, but rather the unicode characters stored in the mssql 2000 server backend.
1
3117
by: Jason Chan | last post by:
Some chinese characters data (in Big5 encoding) is stored in database. I tried to display the data in an aspx but the characters cannot display correctly. I tried anything I think is related: - Setting the charset, codepage of the page - changed the responseEncoding in web.config to Big5 - hardcoded Response.ContentEncoding to 950 (codepage of Big5) - Change the file encoding to Big5 (in save option) None of them work.
5
3002
by: DaveRook | last post by:
Hi I am using c# and MS SQL (express) I have a simple web form where a user puts in their name and address and it updates straight to the SQL server. It also sends an email to let me know it's been updated, and the email contains the same information. This works very well. The problem I have is if some one types anything in Chinese (traditional or simplified)! The email I get is fine and displays Enligsh and Chinese, but it won't...
0
9456
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10040
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
9873
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
9846
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
8713
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.