Re: problem with output character encoding using resource bundles

2003-03-31 Thread Gemes Tibor
Kornilios Kourtis írta:

On Mon, Mar 31, 2003 at 04:36:57PM +0200, Gemes Tibor wrote:
 


it possible to be a tomcat problem?

(I'm using tomcat 4.1)

 

It works for me. I put together a small example, and displays everything 
fine.
Try to set the content-type to "text/html;charset=UTF-8". Maybe this helps.

Tib





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem with output character encoding using resource bundles

2003-03-31 Thread Jason Lea
Kornilios Kourtis wrote:
On Mon, Mar 31, 2003 at 03:55:16PM +0200, Gemes Tibor wrote:

[EMAIL PROTECTED] ?rta:

Also I forgot to write that when I tried the utf-8 encoding for the page
I got some strange symbols (like questionmarks) 
in the browser. I thought that it might be the browser's fault and so 
I tried to view the page with a couple of browers but none workedd.

yes I set the encoding of the page (iso-8859-7) 
and I even tried with telnet and verified that the server 
sends question marks
I have managed to get Japanese to work, but using UTF-8.  It should mean 
I can render a mixture of languages on my page.

I have this at the top of every page:

<%@ page contentType="text/html; charset=UTF-8"%>

I can check that this is being set correctly in the browser with the 
following:

Mozilla: Open View->Page Info and look at Encoding
IE: Open View->Encoding
I convert my application.properties file with the following ant task


  


This converts the file and puts it into the classes directory.
So I end up with lines like:
login.username=\u30ed\u30b0\u30a4\u30f3

The final part is making sure I use a style sheet that specifies a 
Unicode font (eg can display any language).  The wrong font will display 
as ???.

--
Jason Lea
Email: [EMAIL PROTECTED]
Phone/Fax: +64  3 381 2907
Mobile:+64 21 040 2708
Address:   9a Tabart Street, Christchurch, New Zealand
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem with output character encoding using resource bundles

2003-03-31 Thread Kornilios Kourtis
On Mon, Mar 31, 2003 at 04:36:57PM +0200, Gemes Tibor wrote:
> Kornilios Kourtis ?rta:
> 
> >yes I set the encoding of the page (iso-8859-7) 
> >and I even tried with telnet and verified that the server 
> >sends question marks
> >
> 
> How does ApplicationResources.properties look like? It should like this:
> prompt.login=\ufeff\u038c\u03bd\u03bf\u03bc\u03b1 
> \u03c7\u03c1\u03ae\u03c3\u03c4\u03b7
> 
> or like. I don't know any greek ;-).
> 
> Tib

yes it does. 

Is it possible to be a tomcat problem?

(I'm using tomcat 4.1)

-- 
Kornilios Kourtis
"The worst is yet to come"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with output character encoding using resource bundles

2003-03-31 Thread Gemes Tibor
Kornilios Kourtis írta:

yes I set the encoding of the page (iso-8859-7) 
and I even tried with telnet and verified that the server 
sends question marks

How does ApplicationResources.properties look like? It should like this:
prompt.login=\ufeff\u038c\u03bd\u03bf\u03bc\u03b1 
\u03c7\u03c1\u03ae\u03c3\u03c4\u03b7

or like. I don't know any greek ;-).

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem with output character encoding using resource bundles

2003-03-31 Thread Kornilios Kourtis
On Mon, Mar 31, 2003 at 03:55:16PM +0200, Gemes Tibor wrote:
> [EMAIL PROTECTED] ?rta:
> >Also I forgot to write that when I tried the utf-8 encoding for the page
> >I got some strange symbols (like questionmarks) 
> >in the browser. I thought that it might be the browser's fault and so 
> >I tried to view the page with a couple of browers but none workedd.
> > 
> >
> Check the page source. If it contains question marks the error is server 
> side. If it shows the
> right characters, check your browser.
> 
> Did you set the content type for your pages? I use this for example:
> <%@ page language="java" contentType="text/html;charset=ISO-8859-2"%>
> 
> Hth,
> 
> Tib

yes I set the encoding of the page (iso-8859-7) 
and I even tried with telnet and verified that the server 
sends question marks

-- 
Kornilios Kourtis
"The worst is yet to come"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with output character encoding using resource bundles

2003-03-31 Thread Gemes Tibor
[EMAIL PROTECTED] írta:


Also I forgot to write that when I tried the utf-8 encoding for the page
I got some strange symbols (like questionmarks) 
in the browser. I thought that it might be the browser's fault and so 
I tried to view the page with a couple of browers but none workedd.
 

Check the page source. If it contains question marks the error is server 
side. If it shows the
right characters, check your browser.

Did you set the content type for your pages? I use this for example:
<%@ page language="java" contentType="text/html;charset=ISO-8859-2"%>
Hth,

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: problem with output character encoding using resource bundles

2003-03-31 Thread kkourt-struts
On Mon, Mar 31, 2003 at 03:26:00PM +0200, Gemes Tibor wrote:
> [EMAIL PROTECTED] ?rta:
> >I tried to convert the file to utf-8 using native2ascii as 
> >described in http://www.anassina.com/struts/i18n/i18n.html
> >but the problem remains. 
> native2ascii cannot convert to utf-8 afaik... it converts to ascii where 
> the not-ascii characters
> will be exchanged with their escaped ascii equivalent.  However 
> native2ascii is your tool.
> 
> Did you reload your application after converting the properties file?
> 
> Tib

Yes I reload it

Also I forgot to write that when I tried the utf-8 encoding for the page
I got some strange symbols (like questionmarks) 
in the browser. I thought that it might be the browser's fault and so 
I tried to view the page with a couple of browers but none workedd.


-- 
Kornilios Kourtis
"The worst is yet to come"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with output character encoding using resource bundles

2003-03-31 Thread Gemes Tibor
[EMAIL PROTECTED] írta:

I tried to convert the file to utf-8 using native2ascii as 
described in http://www.anassina.com/struts/i18n/i18n.html
but the problem remains. 
 

native2ascii cannot convert to utf-8 afaik... it converts to ascii where 
the not-ascii characters
will be exchanged with their escaped ascii equivalent.  However 
native2ascii is your tool.

Did you reload your application after converting the properties file?

Tib



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem with output character encoding using resource bundles

2003-03-31 Thread kkourt-struts
Hello, 

I know this problem is discused alot in the list
but I couldn't figure out what to do.

I use a "Ressources.properties" file for the messages.
This file contains iso-8859-7 (greek) encoding messages.

The problem is that in the output I can only see: ?

I tried to convert the file to utf-8 using native2ascii as 
described in http://www.anassina.com/struts/i18n/i18n.html
but the problem remains. 

I also tried to set the character set in the 
JSP page to utf-8 and iso-8859-7 
and none of them does work. 

I would prefer (if it is possible) the encoding of
the outpuy page to be iso-8859-7

Thank you for your help.

-- 
Kornilios Kourtis
"The worst is yet to come"

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]