BUG: ISO-8859-1 with json_encode
Permalink
Hey Guys,
I have an issue which i think is a bug, i converted all pages in Concrete5 from UTF-8 to ISO-8859-1 since that is the encoding i need.
However all pages in Sitemap do not show the special characters, such as if i type in "Qué es esto" for the page title the sitemap in Dashboard will only show "Qu" etc..
Also if i start the page with a special character such as "é es esto" the page name will not show and the creation date for that page is "1970". I think this has something to do with json_encode (not sure tough). Is it possible to fix this easily or some sort of solution on this?.
I have an issue which i think is a bug, i converted all pages in Concrete5 from UTF-8 to ISO-8859-1 since that is the encoding i need.
However all pages in Sitemap do not show the special characters, such as if i type in "Qué es esto" for the page title the sitemap in Dashboard will only show "Qu" etc..
Also if i start the page with a special character such as "é es esto" the page name will not show and the creation date for that page is "1970". I think this has something to do with json_encode (not sure tough). Is it possible to fix this easily or some sort of solution on this?.
c5 does work best with utf-8. There are a few functions where the site must use utf-8.. Lucene and stuff like that..
Andrew made a few modifications in the dev branch where you can specify the charset but until this is out, I strongly advise you to use utf-8. It can display all the characters of iso-8859-1 too and works with c5...
Andrew made a few modifications in the dev branch where you can specify the charset but until this is out, I strongly advise you to use utf-8. It can display all the characters of iso-8859-1 too and works with c5...
Is there any solution or a hack for this?, what was it that Andew did?, possible to share the code so i could try that out and see if it works ?.
Thanks, i appreciate your help..
Thanks, i appreciate your help..
please note that this code isn't stable yet. Even if the part with the charset works, there are a lot of bugs in the dev branch right now...
Is it not possible for you to use utf-8? What are the reasons why you have to work with ISO-8859-1? We might find a way to run your site with utf-8.... impossible?
Is it not possible for you to use utf-8? What are the reasons why you have to work with ISO-8859-1? We might find a way to run your site with utf-8.... impossible?
When I go to the following link:
http://aguadelavida.info/escuchar-flash?audio_file=adorar-carlos.mp...
and output the aquí part using javascript I get à instead of í. Does this have to do with the charset or do I need to use javascript to re-format the data somehow to display correctly?
Any ideas on something to try? Thanks!
http://aguadelavida.info/escuchar-flash?audio_file=adorar-carlos.mp...
and output the aquí part using javascript I get à instead of í. Does this have to do with the charset or do I need to use javascript to re-format the data somehow to display correctly?
Any ideas on something to try? Thanks!
Ok, i really need to sort this issue out asap, can't go back to UTF-8 now.
However i have a thought, would it be possible to change the site "title" to display in the sitemap and instead display site "slug" name?. That should solve the character issue for now at least.
Let me know what you think, and if possible i really would appreciate some pointers or info on how to do that..
Thanks guys, i appreciate your help.
However i have a thought, would it be possible to change the site "title" to display in the sitemap and instead display site "slug" name?. That should solve the character issue for now at least.
Let me know what you think, and if possible i really would appreciate some pointers or info on how to do that..
Thanks guys, i appreciate your help.
Dear All,
I have also a font problem. Working with UTF8 fonts and everything looks good. However, when I saw the fonts inside the database all looking corrupt.
In addition, when I check the source code of the website, from the browser, the text read from the database also corrupt.
I am totally confused. The database is fully set to UTF8. You may review the website and see what the problem is.
http://www.kordil.com.tr
This situation disturbs me because, when I check the cache of the website. The fonts are looking broken at all.
Any advice or recommendation?
I have also a font problem. Working with UTF8 fonts and everything looks good. However, when I saw the fonts inside the database all looking corrupt.
In addition, when I check the source code of the website, from the browser, the text read from the database also corrupt.
I am totally confused. The database is fully set to UTF8. You may review the website and see what the problem is.
http://www.kordil.com.tr
This situation disturbs me because, when I check the cache of the website. The fonts are looking broken at all.
Any advice or recommendation?
http://www.concrete5.org/community/bugs/...