Hello freaks , I have issue with converting special chars. This is example of string I'm working with:
„Quảng Trị”
So here we go with bdquo and rdquo quotes and some other stuff with exotic letters (Vietnamese alphabet letters).
Of course I'm working with UTF-8 character set.
And that's what I need to do with this:
1. I'm using some WYSIWYG script for textarea so that exotic letters should be displayed as Decimal NCRs. I'm saving that field to MySQL database (5.5):
[Engine] => InnoDB
[Version] => 10
[table_collation] => latin2_general_ci
2. Then I want to retrieve that string from database and display as it is.
I was trying with htmlentities(), html_entity_decode(), mb_encode_numericentity() but I'm still confused. I can get these exotic chars with ord() (for example first quote stands for char: 226, 128, 158) then replace to Decimal NCR or name with ampersand, but I have no time and strength to build whole table with conversions, besides re-inventing wheel it's nothing I need here .
I found great site to convert strings so this converter for Decimal NCRs working like a charm: http://rishida.net/tools/conversion/
I hope my problem is clearly explained and there's some solution for such things.
Thanks for interesting!