If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Desperate about codepage

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-01-07, 10:48
netzorro netzorro is offline
Registered User
 
Join Date: Nov 2006
Posts: 2
Desperate about codepage

Hi all, hope you can help me

I have a db2 workgroup udb 8.2 FP 10 on windows 2003
Territory Lat, Codepage 1252, Code set 1252, Country 3

The problem is with special spanish characters á é í ó ú and ñ

There are 2 applications: one vb that works perfect

The other is a websphere 6.0 using IIS as webserver, on windows too

I can't make those special characters work ok. I fill the forms and those
characters return garbage when retrieved from the database.

If I insert with CLP and select they are ok.

I traced the jdbc type 2 driver websphere is using the this is the line:

( DBMS NAME="DB2/NT", Version="08.02.0003", Fixpack="0x23040106" )
( Application Codepage=1252, Database Codepage=1252, Char Send/Recv
Codepage=1208, Graphic Send/Recv Codepage=1200 )

Both codepages application and database are ok.

I tried setting the codepage with db2 set to 1252 or 1208 but none works.

What's the Send/Recv Codepage?
All windows have the same regional settings

Can anyone give me a clue?

Thanks in advance

Fabio
Reply With Quote
  #2 (permalink)  
Old 05-02-07, 08:23
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I guess that could happen if your browser character set is set to UTF-8 (I think it is the default for IE) when you fill the form. I don't believe it is a database issue.
Reply With Quote
  #3 (permalink)  
Old 05-03-07, 04:19
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
I agree with n_i. If you can see special characters in database using select, then I suggest you check your HTML code in <head> </head> there should be meta tag like this:
Code:
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
The above code forces browser to use exact code page specified in html file. If this is not use browser uses some defaults, maybe utf-8 as n_i suggested. I always use meta tag definition. This definition all W3C HMTL compatible browsers use, so it is good practice anyway.

Note: don't forget to refresh web browser web page using <CTRL>+<F5>, to make sure browser doesn't display page from browser local cache.

Hope this helps,
Grofaty
Reply With Quote
  #4 (permalink)  
Old 05-07-07, 12:01
netzorro netzorro is offline
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks for all your answers

The jsp pages had the correct metadata.

I found the problem.

On that pages we also use AJAX. This one has a setting for the codepage.

Thanks all
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On