473,796 Members | 2,544 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating UTF-16/UCS-2 database in AIX

Dear ALL,

How can I create an database of codepage UTF-16/UCS-2 in AIX DB2 V8?
I tried to use "db2set db2codepage=120 0" and "db2 terminate" but
failed. I also tried to use "db2 create db abc using codeset UTF-16
territory US" but also failed. What are the steps? Do I need to install
additional locale on AIX?

Thanks.

panda

Nov 12 '05 #1
2 4850
panda wrote:
Dear ALL,

How can I create an database of codepage UTF-16/UCS-2 in AIX DB2 V8?
I tried to use "db2set db2codepage=120 0" and "db2 terminate" but
failed. I also tried to use "db2 create db abc using codeset UTF-16
territory US" but also failed. What are the steps? Do I need to install
additional locale on AIX?

Thanks.

panda

AFAIK, DB2 doesn't support UTF-16 (at least not for character types),
use UTF-8:
http://publib.boulder.ibm.com/infoce...n/t0004617.htm

Cheers
Serge
Nov 12 '05 #2
Serge Rielau wrote:
panda wrote:
Dear ALL,

How can I create an database of codepage UTF-16/UCS-2 in AIX DB2 V8?
I tried to use "db2set db2codepage=120 0" and "db2 terminate" but
failed. I also tried to use "db2 create db abc using codeset UTF-16
territory US" but also failed. What are the steps? Do I need to install
additional locale on AIX?

Thanks.

panda

AFAIK, DB2 doesn't support UTF-16 (at least not for character types),
use UTF-8:
http://publib.boulder.ibm.com/infoce...n/t0004617.htm
Cheers
Serge

UTF-16 is the encoding used in a Unicode DB for GRAPHIC and VARGRAPHIC
datatypes. CHAR and VARCHAR are UTF-8

Cheers
Serge
Nov 12 '05 #3

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

Similar topics

1
5752
by: Irmen de Jong | last post by:
Hi I'm trying to create e-mail content using the email.MIMEText module. It basically works, until I tried to send mail in non-ascii format. What I did, to test both iso-8859-15 and UTF-8 encodings, was this: ---- from email.MIMEText import MIMEText m=MIMEText(u"body text including an Euro char \u20ac\n", _charset="iso-8859-15") m = "from@mail.invalid"
3
2015
by: dave | last post by:
I am using vs.net 2003 on windows xp. After clicking on a project within my solution and selecting create new folder vs.net responds back with , the "directory already exists". If i look at the virtual directory on my pc the directory does not exist. If i create the folder from explorer then select hide/show files within vs.net I see the directory I just created. When I include that directory in my project by right clicking and selecting...
2
3649
by: Stacey Levine | last post by:
OK.. I am creating an XML document (Fedex Tracking). And one of my attributes on an element is supposed to have an "xsi:" before the attribute name. It is in my code below.. but the output does not have the "xsi:" The area to look at is the "noNamespaceSchemaLocation" Any ideas around this? What I end up with is: <?xml version="1.0" encoding="UTF-8" ?> - <TrackShipmentRequest
2
10390
by: David Elliott | last post by:
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString" value="server=(local);" /> </appSettings> </configuration> I am using a XmlDocument for my base implementation.
1
1361
by: M K | last post by:
Can I create code so that when my users create a username in an Intranet form (Using Integrated Windows security) that user gets added to AD under a certain group? Where can I get info on this?
5
3506
by: Sam777 | last post by:
I was under the impression that creating the app_offline.htm file at the root of the webapp would cause all handles to be closed so that the app could be removed. Unfortunately, this isn't the case. One handle remains open. Debugging shows that it's actually the IIS cache and not ASP.NET that owns this handle. During IIS shutdown, the handle is closed with the following stack trace: ChildEBP RetAddr 0006fbe4 5a403e05...
15
2837
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. Everything is the default settings I believe. IIS is running under Local System. In IIS the DefaultAppPool is running under Network Service. Annonymous access uses the account IUSR_JASMINE (machine name is Jasmine).
4
1742
by: Marijn | last post by:
Hey everybody, The following has been posted before (2 years ago) but no response was added. Therefor again, the following code for creating xhtml file: <?php error_reporting(6143); $xmlns = "http://www.w3.org/1999/xhtml";
2
2120
by: divyac | last post by:
I have developed an address book using php and mysql.I have all the contacts list in a table with check boxes.Now that i want to create mailing labels for the checked contacts...i.e.,the arrangements of addresses should be modified in such a way that there should be 5 addresses in a row of the table...I have done some coding but just dont know how to retrieve the checked contacts..Also..i have some problem in creating labels in which some...
1
2247
by: razamemon | last post by:
i am struggling from last 3 days creating frames using javascript, it works fine on IE but not on firefox, when displaying language other than english, here is the code self.newWin = window.open('about:blank','cal','dependent=yes,width=180,height=180,titlebar=yes,top=243,left=232'); newWin.document.write ( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+ "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0...
0
9528
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,...
1
10174
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
10012
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
9052
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...
0
5442
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
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
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2926
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.