Encoding problem with special characters
Permalink
Hi there! I have built a custom block and add for example a simple
<?=$form->label('title', 'title of the podcasts');?>
<?=$form->text('title', $title, array('style' => 'width: 320px'));?>
The problem is, that for example if I enter a "ü" the database stores a "ü". So there must be wrong conversion from ISO-8859-1 to UTF-8. Any ideas where it comes from? Is there a way to intercept storing of values by encoding them firstly with utf8_encode() ? Or is it a missconfiguration at the webserver?
Thank you for your help! I realy appreciate that CMS!
<?=$form->label('title', 'title of the podcasts');?>
<?=$form->text('title', $title, array('style' => 'width: 320px'));?>
The problem is, that for example if I enter a "ü" the database stores a "ü". So there must be wrong conversion from ISO-8859-1 to UTF-8. Any ideas where it comes from? Is there a way to intercept storing of values by encoding them firstly with utf8_encode() ? Or is it a missconfiguration at the webserver?
Thank you for your help! I realy appreciate that CMS!
i had to store the file as ISO-8859-1. but why? at least this problem is fixed now.
this might be a bad idea. c5 needs utf8 for a few things and I therefore advice you to use utf8 for your blocks too.
Did you see the "miss-encoded" character only in the database? If so it's just a database set up problem. You can store multi byte characters in a single byte mysql table. This works fine but mysql isn't able to display it correctly. But php (c5) does.
Did you see the "miss-encoded" character only in the database? If so it's just a database set up problem. You can store multi byte characters in a single byte mysql table. This works fine but mysql isn't able to display it correctly. But php (c5) does.
I have the same problem, but it is originating from TinyMCE and already had a long conversation with C5 support. I created below movie for explanation. Problem still persists and do not know how to fix this. I found the way, I make hard editing in the database, to show the content properly. But this is something pretty temporary solution. As soon as I add new content, text will be corrupt again. Strange think is that all cases, page is shown properly, but the html code is looking corrupt, and search engines cannot index the site properly.
I came with newer versions for sure.
Below link describes the problem with a movie.
http://www.kordil.com/concrete5_unicode_issue.mp4...
There is another topic waiting for support.
http://www.concrete5.org/index.php?cID=52152...
Harun
http://www.kordil.com
I came with newer versions for sure.
Below link describes the problem with a movie.
http://www.kordil.com/concrete5_unicode_issue.mp4...
There is another topic waiting for support.
http://www.concrete5.org/index.php?cID=52152...
Harun
http://www.kordil.com
I know this is an older thread but just came up against this problem.
With the introduction of languages and soon the release of 5.5 will we be able to add special characters?
With the introduction of languages and soon the release of 5.5 will we be able to add special characters?
I still have this problem!
Eg. If I copy some text from a Word file into TinyMCE, all special characters look OK, so it seems TinyMCE can handle it.
But after saving the special characters get corrupted.
Is there a way to circumvent this?
Eg. If I copy some text from a Word file into TinyMCE, all special characters look OK, so it seems TinyMCE can handle it.
But after saving the special characters get corrupted.
Is there a way to circumvent this?