Quantcast

UTF-8 problems in 1.3.7?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

UTF-8 problems in 1.3.7?

Paulo Alexandre Freitas

Hi,

 

I’m about to get insane about this... L

 

If I simply put: println "ã á à â é õ ç ó ò è ê"

The result on console is: ú í á ó ® Á º ├▓ ¿ ¬

 

The file is in UTF-8 as well as all grails configurations…

 

Any ideas why?

 

Best regards,

Paulo

 

 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: UTF-8 problems in 1.3.7?

hanswesterbeek
you console is not set to utf8?

On Friday, February 25, 2011, Paulo Alexandre Freitas <[hidden email]> wrote:
>
> Hi, I’m about to get insane about this... L If I simply put: println "ã á à â é õ ç ó ò è ê"The result on console is: ├ú ├í ├á ├ó ├® ├Á ├º ├│ ├▓ ├¿ ├¬ The file is in UTF-8 as well as all grails configurations… Any ideas why? Best regards,Paulo
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: UTF-8 problems in 1.3.7?

Paulo Alexandre Freitas
Hello Hans,

Yes, the console is also UTF-8...
However, I don't think the problem is on console. If I pass a variable, for example, to the domain (a setter override) and perform a == the result is false...
Also, on database it's correct... This is really weird...

Regards,
Paulo
-----Original Message-----
From: Hans Westerbeek [mailto:[hidden email]]
Sent: sexta-feira, 25 de Fevereiro de 2011 01:48
To: [hidden email]
Subject: Re: [grails-user] UTF-8 problems in 1.3.7?

you console is not set to utf8?

On Friday, February 25, 2011, Paulo Alexandre Freitas <[hidden email]> wrote:
>
> Hi, I’m about to get insane about this... L If I simply put: println "ã á à â é õ ç ó ò è ê"The result on console is: ├ú ├í ├á ├ó ├® ├Á ├º ├│ ├▓ ├¿ ├¬ The file is in UTF-8 as well as all grails configurations… Any ideas why? Best regards,Paulo


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: UTF-8 problems in 1.3.7?

Daniel Henrique Alves Lima
    Is your app running on Windows? Windows console is really weird.

http://grails.1312388.n4.nabble.com/Problems-with-Strings-and-accents-td3029404.html


Paulo Alexandre Freitas wrote:
(...)

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: UTF-8 problems in 1.3.7?

prabugp
In reply to this post by Paulo Alexandre Freitas
The title says 1.3.7. Does that mean the error is not found in 1.3.6? Could you write a simple java class to remove any JVM specific locale settings? Or probably try in a different machine? Or you doing  a run-app, run-war or in a separate Tomcat?
GP
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: UTF-8 problems in 1.3.7?

Paulo Alexandre Freitas
Hello,

As said before, there might be a problem with windows cmd.

Have you tried to simply println "ã é ó ç õ" ? What's the output? On
IntelliJ I get the output correct, on windows cmd it's broken.

The JVM is set to UTF-8 and I'm running via "run-app". I do believe that
this behavior didn't happen on previous grails versions but, its most likely
to be a problem on my machine :S

If I change the code page via "chcp" (by default I have 850) grails says
there's an invalid path to jdk... This is strange since I don't change
anything on path or system variables.

Thank you all for your help ;)

Regards,
Paulo

-----Original Message-----
From: prabugp [mailto:[hidden email]]
Sent: sexta-feira, 25 de Fevereiro de 2011 11:16
To: [hidden email]
Subject: [grails-user] Re: UTF-8 problems in 1.3.7?


The title says 1.3.7. Does that mean the error is not found in 1.3.6? Could
you write a simple java class to remove any JVM specific locale settings? Or
probably try in a different machine? Or you doing  a run-app, run-war or in
a separate Tomcat?

-----
GP
--
View this message in context:
http://grails.1312388.n4.nabble.com/UTF-8-problems-in-1-3-7-tp3323748p332425
1.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

RE: UTF-8 problems in 1.3.7?

Steve Tekell
In reply to this post by Paulo Alexandre Freitas
Return Receipt
                                                                           
   Your       RE: [grails-user] UTF-8 problems in 1.3.7?                  
   document:                                                              
                                                                           
   was        [hidden email]                                            
   received                                                                
   by:                                                                    
                                                                           
   at:        02/25/2011 11:08:55                                          
                                                                           





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: UTF-8 problems in 1.3.7?

Steve Tekell
In reply to this post by Paulo Alexandre Freitas
Return Receipt
                                                                           
   Your       RE: [grails-user] Re: UTF-8 problems in 1.3.7?              
   document:                                                              
                                                                           
   was        [hidden email]                                            
   received                                                                
   by:                                                                    
                                                                           
   at:        02/25/2011 11:09:27                                          
                                                                           





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...