Encoding Problem

View: New views
5 Messages — Rating Filter:   Alert me  

Encoding Problem

by Ahmed Ali-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear All,

I have problem with displaying arabic letters....when i try to read arabic words from the properities file (messages_ar.properties), i get it as ��������� in the GSP.

Also when i try to write arabic titles in the GSP to show on the view, i get it as ��������� on the site.

Kindly please advise regarding this issue...

Note:

i have already put the below tags in all GSP:

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

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Also i have checked the Config.groovy file and it contains the following:

grails.views.gsp.encoding="UTF-8"

grails.converters.encoding="UTF-8"

Kindly please advise urgent.

Thanks and Regards,

Ahmed Ali


Re: Encoding Problem

by Sven Lange :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Check whether the file itself is using UTF-8. Maybe you have to set your IDE to UTF-8 and convert all properties-files to UTF-8

cheers
sven

Ahmed Ali-2 wrote:
Dear All,

I have problem with displaying arabic letters....when i try to read arabic
words from the properities file (messages_ar.properties), i get it as
��������� in the GSP.

Also when i try to write arabic titles in the GSP to show on the view, i get
it as ��������� on the site.

Kindly please advise regarding this issue...

Note:

i have already put the below tags in all GSP:

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

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Also i have checked the Config.groovy file and it contains the following:

grails.views.gsp.encoding="UTF-8"

grails.converters.encoding="UTF-8"

Kindly please advise urgent.

Thanks and Regards,

Ahmed Ali

Re: Encoding Problem

by Ahmed Ali-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear All,
 
Kindly please advise regarding the following issue:
 
i have already put the below tags in all GSP:

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

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

 Also i have checked the Config.groovy file and it contains the following:

 grails.views.gsp.encoding="UTF-8"

 grails.converters.encoding="UTF-8"

Also i edited these tags in the webdefault.xml to contain encoding="UTF-8" as the following:
<?xml version="1.0" encoding="UTF-8"?>
<locale-encoding-mapping><locale>ar</locale><encoding>UTF-8</encoding></locale-encoding-mapping>
 
Note, i don't use IDE, i work with notepad.
 
How can i convert the properities files to UTF-8?
 
Kindly please advise, that's urgent.
 
Thanks and Regards,
Ahmed Ali

 
On 7/21/08, Sven Lange <spagn@...> wrote:

Check whether the file itself is using UTF-8. Maybe you have to set your IDE
to UTF-8 and convert all properties-files to UTF-8

cheers
sven


Ahmed Ali-2 wrote:
>
> Dear All,
>
> I have problem with displaying arabic letters....when i try to read arabic
> words from the properities file (messages_ar.properties), i get it as
> ��������� in the GSP.
>
> Also when i try to write arabic titles in the GSP to show on the view, i
> get
> it as ��������� on the site.
>
> Kindly please advise regarding this issue...
>
> Note:
>
> i have already put the below tags in all GSP:
>
> <%@ page contentType="text/html;charset=UTF-8" %>
>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
> Also i have checked the Config.groovy file and it contains the following:
>
> grails.views.gsp.encoding="UTF-8"
>
> grails.converters.encoding="UTF-8"
>
> Kindly please advise urgent.
>
> Thanks and Regards,
>
> Ahmed Ali
>
>

--
View this message in context: http://www.nabble.com/Encoding-Problem-tp18565134p18565368.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




Re: Encoding Problem

by Konstantyn Smirnov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ahmed Ali-2 wrote:
Note, i don't use IDE, i work with notepad.

How can i convert the properities files to UTF-8?
Well, the Notepad IS an IDE in a certain sense :)

For converting, try playing with JEdit... It's pretty simple.

Re: Encoding Problem

by Ahmed Ali-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I converted all properties-files to UTF-8, and it works now...

Thanks Sven and Thanks Konstantyn....I appreciate your support.

On 7/21/08, Konstantyn Smirnov <injecteer@...> wrote:

>
>
>
> Ahmed Ali-2 wrote:
> >
> > Note, i don't use IDE, i work with notepad.
> >
> > How can i convert the properities files to UTF-8?
> >
> Well, the Notepad IS an IDE in a certain sense :)
>
> For converting, try playing with JEdit... It's pretty simple.
>
> --
> View this message in context: http://www.nabble.com/Encoding-Problem-tp18565134p18568359.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


LightInTheBox - Buy quality products at wholesale price