VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: toocool on April 29, 2015, 08:03:37 AM

Title: Character Set problem?
Post by: toocool on April 29, 2015, 08:03:37 AM
Hello!

I use Joomla 3.4.1 and VM 3.0.8. Only in Vm, when I add text to anywhere, and i save it, It goes to weird characters. I'm from Hungary and we use á. When I save "á" It looks like this "
	á". I think It's not in UTF-8. How can I fix this?

THANKS!
Title: Re: Character Set problem?
Post by: Jörgen on April 29, 2015, 09:02:07 AM
Hello

Does it show correctly in the front end of the shop ?
Does it get translated into this html safe code in every place when saved in the back end ?

You have also a carriage return (#13), line feed (#10) and horsontal tab (#9) added to the line. The "á" = á

I use Swedish characters å,ä,ö,ü which also seem to be translated, but only in some places in the backend. It makes
it quite difficult to read the saved text strings. I don´t have any solution to this right now. I can understand the idea
of showing these strings if it is those that actually get stored in the database. These translated characters obviously
take more room than they would have in the UTF-8 format. You can check that You have fields long enough to store
these in the database. If the database for some reason only has room for 50 charcters for a field the text could get
truncated when You use characters that translate into these kind of expanded strings when stored.

As far as I know the 'á' is included in UTF-8 the decoded value is a HTML-safe translation of the character. Have You
checked with phpadmin what actually gets stored  in the database ? If the actual UTF-8 chracter value gets stored then
there is some kind of double html-safe translation that occurs when it is displayed in the back end.

I could show some examples from my back end, just have to look for them first.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Character Set problem?
Post by: toocool on May 03, 2015, 12:18:14 PM
Thanks!

When I see the page's source code, It is wrong too. Only in the page good.
Title: Re: Character Set problem?
Post by: GJC Web Design on May 03, 2015, 15:52:03 PM
QuoteWhen I see the page's source code, It is wrong too. Only in the page good.

it can't be called "wrong" -- it is an encoding and display thing
The browser understands this encoding and displays it (as you see) correctly..