VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Jordison on February 10, 2016, 17:37:20 PM

Title: [SOLVED] Encoding problems
Post by: Jordison on February 10, 2016, 17:37:20 PM
How can i repair it?
(http://s012.radikal.ru/i320/1602/2f/85390cdca202.jpg)
Title: Re: Encoding problems
Post by: jjk on February 10, 2016, 18:57:20 PM
First I would suggest to download the lastest Russian translation from here: http://virtuemart.net/community/translations
and install the two Russian language packs again with the Joomla installer.
Title: Re: Encoding problems
Post by: Jordison on February 10, 2016, 21:01:45 PM
ready, nothing has changed, in appearance characters know that this is a problem display of UTF- 8 with windows 1252, but i don`t know how i can repair it
Title: Re: Encoding problems
Post by: jjk on February 10, 2016, 21:58:56 PM
And what happens if you set the 'Text Encoding' in your browser to Unicode? In most browsers it's selectable from the menu bar.
Also you can check with phpmyadmin if your database tables are set to utf8_general_ci. If you find other encodings, phpmyadmin allows to change it.
Another option you may try is to set in Joomla "Global Configuration > Unicode Aliases > Yes.
Title: Re: Encoding problems
Post by: Jordison on February 11, 2016, 08:39:42 AM
I checked everything that you advised, phpmyadmin is set to utf8_general_ci, browser encoding was unicode already, also made a Unicode aliases, but nothing has changed, i have this problem only in virtue mart administrator control panel where i want look any tip.
Title: Re: Encoding problems
Post by: jjk on February 11, 2016, 09:58:38 AM
If you turn on Joomla 'Debug' and 'Debug Language', does it display language parsing errors in the Debug list at the bottom of the page with your encoding problem?
Title: Re: Encoding problems
Post by: Jordison on February 11, 2016, 10:33:54 AM
Joomla debug responds that no errors in language files.
Title: Re: Encoding problems
Post by: Jordison on February 11, 2016, 12:35:59 PM
This mistake appears when i want display tip in virtue mart it show me tip which was originally encoded in unicode but displayed in windows-1252, browser, php is set unicode.
Title: Re: Encoding problems
Post by: jjk on February 11, 2016, 20:00:58 PM
I couldn't reproduce your issue with VM 3.0.12 and VM 3.0.13. In my case the tooltips display is correct. See screenshot below.
Did you configure Russian as a content language in Joomla Extensions > Language(s) > Content Languages?
What does the message with the sand-colored background translate to in English?
Title: Re: Encoding problems
Post by: Jordison on February 12, 2016, 09:06:53 AM
sand message mean that i hav`nt ru-RU flag in content languages, i configure Russian as a content language, sand message disappeared but i still see that mistake. Intresting moment, some fields when i want to see tip show correctly but most fields still incorrectly. If you can`t reproduce my issue i think that i am probably don`t set some settings.
(http://s017.radikal.ru/i413/1602/7f/783a99d49890.jpg)////////(http://s017.radikal.ru/i434/1602/98/25cb25a8d51a.jpg)/////////(http://s009.radikal.ru/i307/1602/d3/18401f0676dc.jpg)
Title: Re: Encoding problems
Post by: jjk on February 12, 2016, 10:37:54 AM
Which php version do you have? (in Joomla have look at 'System' > 'System Information')
Title: Re: Encoding problems
Post by: Jordison on February 13, 2016, 06:31:20 AM
Php version 5.3.13
Title: Re: Encoding problems
Post by: jjk on February 13, 2016, 09:34:50 AM
It's a shot in the dark, but maybe an update to PHP 5.4 or higher would help. See here: http://php.net/manual/ru/function.htmlspecialchars.php
In the article it says ..."PHP 5.4 and 5.5 will use UTF-8 as the default. Earlier versions of PHP use ISO-8859-1. "
Title: Re: Encoding problems
Post by: Jordison on February 13, 2016, 17:46:21 PM
Thank you for helping, it was php version, problem solved)