Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Problem with Arabic translation in page name(??????)
Gabriel Bustos Padilla, modified 10 Years ago.
Junior Member
Posts: 63
Join Date: 3/6/13
Recent Posts
Hi! I have a problem in my production machine because when I try to introduce the arabic translation in page name, appears "??????" instead of the arabic translation. What could be the problem?
Thanks in advance
Thanks in advance
Attachments:
Gabriel Bustos Padilla, modified 10 Years ago.
Junior Member
Posts: 63
Join Date: 3/6/13
Recent Posts
I have investigated and is not a problem of the charset of database. If I write the arabic characters directly in DB, when I load the page, appears correctly. The problem is that Liferay save the arabic values like ?????. With chinese characters happens the same.
I had a similar problem. I figured out that collation of columns name and title of table Layout is SQL_Latin1_General_CP1_CI_AS. They need to be SQL_Latin1_General_CP1256_CI_AS to show Arabic (and also Persian) page names correctly. So I used the following queries to modify their collation:
Then I modified the name of the page and the problem was resolved. Never ever modify the database manually. It causes Liferay indexes get invalidated and it can make problems.
ALTER TABLE Layout ALTER COLUMN title varchar(2000) COLLATE SQL_Latin1_General_CP1256_CI_AS
ALTER TABLE Layout ALTER COLUMN name varchar(2000) COLLATE SQL_Latin1_General_CP1256_CI_AS
Then I modified the name of the page and the problem was resolved. Never ever modify the database manually. It causes Liferay indexes get invalidated and it can make problems.
Ideally, you'd set every encoding on every level to UTF-8
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™