Re: WOLips and Special Language Characters
Re: WOLips and Special Language Characters
- Subject: Re: WOLips and Special Language Characters
- From: Ron Lift <email@hidden>
- Date: Fri, 3 Sep 2010 07:58:12 -0400
Here is where I got to in case anyone has any help
I view the check everywhere and I am using UTF-8. I added both of these setting to my jdbc connection string
characterEncoding=UTF-8;charset=UTF-8;
When I run the add a breakpoint and watch the EOFetchSpecification values just before the fetch, the data looks correct "DLR_LŸON"
I started a trace on the MSSQL server and this is what I see
declare @p1 int
set @p1=1073741858
declare @p2 int
set @p2=180150069
declare @p7 int
set @p7=-1
exec sp_cursorprepexec @p1 output,@p2 output,N'@P0 nvarchar(4000),@P1 nvarchar(4000)',N'SELECT t0.CertifiedDealerFlag, RTRIM(t0.ClientCode), t0.CreateDate, RTRIM(t0.CreateID), t0.CreateTime, RTRIM(t0.DealerAddress1), RTRIM(t0.DealerAddress2), RTRIM(t0.DealerCity), RTRIM(t0.DealerContactEmail), RTRIM(t0.DealerContactFax), RTRIM(t0.DealerContactFirstname), RTRIM(t0.DealerContactLastname), RTRIM(t0.DealerContactPhone), RTRIM(t0.DealerContactPhoneExt), RTRIM(t0.DealerCountryCode), RTRIM(t0.DealerCounty), RTRIM(t0.DealerEmail), RTRIM(t0.DealerFax), RTRIM(t0.DealerName), RTRIM(t0.DealerNumber)....) FROM dbo.Dealer t0 WHERE (t0.ClientCode = @P0 AND t0.DealerNumber = @P1) ',4112,8193,@p7 output,N'BRP_INT',N'DLR_LON'
select @p1, @p2, @p7
When I run a simple java class with a basic jdbc executequery call, This is the trace
declare @p1 int
set @p1=180150003
declare @p5 int
set @p5=-1
exec sp_cursoropen @p1 output,N'select * from Dealer where DealerNumber = ''DLR_LŸON''',16,8193,@p5 output
select @p1, @p5
Any ideas?
On Thu, Sep 2, 2010 at 5:47 PM, Ron Lift
<email@hidden> wrote:
My default encoding was set to UTF-8. I was trying to resolve the problem using system.out statements to the console. did not realize that the console was displaying the value incorrectly. I now need to trace the value from the being set in fetch spec thru to the MSSQL server to find the problem. Thanks everyone for all the pointers. I will post updates as I find them
On Thu, Sep 2, 2010 at 4:30 PM, David Avendasora
<email@hidden> wrote:
Hi Ron,
You can also change it by going into Eclipse preferences, typing "encoding" into the search box and change it on the Workspace page. Here's a screenshot:
Pascal's way will make it use that as the default for all workspaces, this way you have to do it for each workspace you have, but even with Pascal's way, you'll have to redo that if you download a new copy of Eclipse (happens to me quite frequently).
Dave
On Sep 2, 2010, at 1:48 PM, Pascal Robert wrote:
Did you change the file encoding in Eclipse? By default, it's using the system encoding, so on OS X, it's MacRoman... You can change the default encoding by closing Eclipse, and open the bundle /Applications/Eclipse (right click -> show package content) and edit Contents/MacOS/eclipse.ini to put that line :
-Dfile.encoding=UTF-8
Save eclipse.ini, reopen Eclipse and all files will now be on UTF-8. And it's normal to use garbage in Eclipse's console.
We are adding multi language support to one of our applications. We are currently running on OSX 10.5, Eclipse 3.3, WOLips 3.3.4906. I create a new project using the WonderApplication template and enter a value of DLRŸ in a WOTextField, the value of the variable in java is DLR?.
I have a laptop running 10.6, Eclipse 3.5, WOLips 3.5.6066. If I run the same code then the value when i system.out is DLRŸ. Before I inform the management that I need to upgrade the developer machines to intel machines ( we currently have G5 Mac Pro) and have operations create a tomcat instance that has Java 1.6, is there something I am missing in my current configuration.
The current app uses UTF-8 text file encoding properties and the web page headers are as follows
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
When I create a app using the wizard, the doctype was <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> on both the Leopard and Snow Leopard versions.
Any help will be appreciated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden