|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Encoding ProblemDear 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 ProblemCheck 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
|
|
|
Re: Encoding ProblemDear 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:
|
|
|
Re: Encoding ProblemWell, the Notepad IS an IDE in a certain sense :) For converting, try playing with JEdit... It's pretty simple. |
|
|
Re: Encoding ProblemI 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 |
| Free Forum Powered by Nabble | Forum Help |