grails Cyrillic

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

grails Cyrillic

Fenuk
when I execute this code here:

    def index = (render "hello")

then on the html page displays the word "hello".

When I execute this code:

    def index = (render "привет")

page displayed "????"

How do I get the correct display of Cyrillic characters?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: grails Cyrillic

tomas lin
Have you tried specifying an encoding?

render( text: 'привет', encoding: 'windows-1251' )

On Wed, Jul 28, 2010 at 9:09 AM, Fenuk <[hidden email]> wrote:

>
> when I execute this code here:
>
>    def index = (render "hello")
>
> then on the html page displays the word "hello".
>
> When I execute this code:
>
>    def index = (render "привет")
>
> page displayed "????"
>
> How do I get the correct display of Cyrillic characters?
>
> Thanks.
> --
> View this message in context: http://grails.1312388.n4.nabble.com/grails-Cyrillic-tp2304591p2304591.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
|

Re: grails Cyrillic

ishe
In reply to this post by Fenuk
Никогда и нигде такого небыло, смотри настройки кодировок своей IDE
чтобы был utf-8.


On Wed, 2010-07-28 at 01:09 -0700, Fenuk [via Grails] wrote:

> when I execute this code here:
>
>     def index = (render "hello")
>
> then on the html page displays the word "hello".
>
> When I execute this code:
>
>     def index = (render "привет")
>
> page displayed "????"
>
> How do I get the correct display of Cyrillic characters?
>
> Thanks.
>
>
> ______________________________________________________________________
> View message @
> http://grails.1312388.n4.nabble.com/grails-Cyrillic-tp2304591p2304591.html 
> To start a new topic under Grails - user, email ml-node
> +[hidden email]
> To unsubscribe from Grails - user, click here.
>


Reply | Threaded
Open this post in threaded view
|

Re: grails Cyrillic

Fenuk
сейчас никакой IDE не использую, делаю все руками. Код правлю в notepad++.
У тебя все работает на ура?
Reply | Threaded
Open this post in threaded view
|

Re: grails Cyrillic

Fenuk
In reply to this post by tomas lin
I solved the problem
should be on everywhere use utf -8
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: grails Cyrillic

ishe
In reply to this post by Fenuk
yes.
you files must be saved in utf-8 OR tomcat must be setup for encoding
windows-1251.


вы явно в своем ноутпаде набираете файлы "как есть" и они у вас
сохраняются в кодировке windows-1251, которую по умолчанию не понимает
tomcat. в общем выставьте (если сможете) в ноутпаде кодировку utf-8 и
сохраняейте файлы с кодом в ней, либо настройте tomcat на использование
windows-1251 по умолчанию. а еще лучше начать забывать про винду и ее
кодировки как страшный сон


On Wed, 2010-07-28 at 01:51 -0700, Fenuk [via Grails] wrote:

> сейчас никакой IDE не использую, делаю все руками. Код правлю в
> notepad++.
> У тебя все работает на ура?
>
>
> ______________________________________________________________________
> View message @
> http://grails.1312388.n4.nabble.com/grails-Cyrillic-tp2304591p2304642.html 
> To start a new topic under Grails - user, email ml-node
> +[hidden email]
> To unsubscribe from Grails - user, click here.
>


Reply | Threaded
Open this post in threaded view
|

Re: grails Cyrillic

Fenuk
ig78, спасибо.