Foren
How can I configure template charset? Getting �
Ra Jo Ga Cha, geändert vor 7 Jahren.
How can I configure template charset? Getting �
Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
I have a footer with shown text into a ftl, but it's showing � for special characters. I've tried almost every workaround that I found in the net:
JVM charset
Starting my portal_normal.ftl with "<#ftl encoding='UTF-8'>"
Checked Eclipse encoding in project properties, workspace preferences and java properties files preferences.
Also checked any file where "encoding" or "charset" word was found into my liferay directory:
Restarted the app server, "just in case".
Database is UTF-8, sure of this because it's being upgraded from Liferay 6 and contents coming from database are showing correctly special characters, it's only the text into the template the one that is not working.
Still nothing...
JVM charset
Starting my portal_normal.ftl with "<#ftl encoding='UTF-8'>"
Checked Eclipse encoding in project properties, workspace preferences and java properties files preferences.
Also checked any file where "encoding" or "charset" word was found into my liferay directory:
- tomcat-8.0.32/bin/setenv.sh
- tomcat-8.0.32/conf/context.xml
- tomcat-8.0.32/conf/server.xml
- tomcat-8.0.32/conf/tomcat-users.xml
- tomcat-8.0.32/conf/tomcat-users.xsd
- tomcat-8.0.32/conf/web.xml
- tomcat-8.0.32/webapps/ROOT/WEB-INF/liferay-web.xml
- tomcat-8.0.32/webapps/ROOT/WEB-INF/server-config.wsdd
Restarted the app server, "just in case".
Database is UTF-8, sure of this because it's being upgraded from Liferay 6 and contents coming from database are showing correctly special characters, it's only the text into the template the one that is not working.
Still nothing...
Olaf Kock, geändert vor 7 Jahren.
RE: How can I configure template charset? Getting �
Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste BeiträgeRa Jo Ga Cha:
Starting my portal_normal.ftl with "<#ftl encoding='UTF-8'>"
Checked Eclipse encoding in project properties, workspace preferences and java properties files preferences.
Check Eclipse settings for your portal_normal.ftl - just adding the header does not make the editor choose this encoding.
If you're referring to Liferay's language resources: Make sure that your custom Language.properties and Language_XX.properties are also UTF-8 encoded (instead of Java's default ISO-8859-1.
Ra Jo Ga Cha, geändert vor 7 Jahren.
RE: How can I configure template charset? Getting � (Antwort)
Junior Member Beiträge: 77 Beitrittsdatum: 19.01.17 Neueste Beiträge
portal_normal.ftl is UTF-8 encoded, no language files.
Ok, UTF-8 encoding destroyed characters after conversion so I had to update the characters with that symbol back to it's normal state.
Thanks!
Ok, UTF-8 encoding destroyed characters after conversion so I had to update the characters with that symbol back to it's normal state.
Thanks!