3 users online. Create an account or sign in to join them.Users
cyrrilic coding problems
This is an open discussion with 6 replies, filed under General.
Search
Hi, ibcico. Try this.
In /symphony/lib/toolkit/class.field.php
Replace ~line 320
$value = (strlen($value) <= $max_length ? $value : substr($value, 0, $max_length) . '...');
With
$value = (strlen(utf8_decode($value)) <= $max_length ? $value : substr($value, 0, $max_length) . '...');
That won’t help.
<item handle="йцукенгшщзхъфывап�-олджэёячсмитьбюйцукенгшщзхъфывап�-олджэёячсмитьбю" id="35">
that’s what i get as a result. By the way only one letter doesn’t function “р” this one all the others seem to work well!!!
Are there any other ways to solve it?
This page could not be rendered due to the following XSLT processing errors
XML Line 11 loadXML(): Input is not proper UTF-8, indicate encoding ! Bytes: 0xD1 0x2D 0xD0 0xBE in Entity, line: 11
Thats the error i get
By the way in Publish Area, where all the entries are pupukated I also get wrong output!
But not for the element I get wrong in XML but for textarea that’s shown there!
Have you checked if your data base encoding is correctly set?
@ibcico, check these threads
Create an account or sign in to comment.
When generating xml for bound section select box with cyrrilic text, in property @handle one gets value converted into latin. The thing is that for some chars convertion goes wrong, like for example for cyrrilyc “р”, the output is question marks and that causes symphony collapse and error reporting it is not UTF-8 encoding.
I’ve got to make my customers fulfill section field i usually call link in latin in order to have proper working front end data output.
Can it be solved anyhow?