Issue with Bulgarian Characters
I have to develop an application with support for Bulgarian language. Actually it will need to display both English and Bulgarian languages in same page.
Accordingly I set the page's encoding to utf-8. Also passed utf-8 header.
Then for language files, I created a separate include include file for each language. Language file is containig an associative array of keys and values. With the use of an function I set it to get language values (depending on $_GET or set $_SESSION parameters) and put them in relevant locations in main page.
That works, however it is not showing actual Bulgarian characters. Instead it shows question marks.
I saved all files in UTF-8 and when opened in text editor, I see actual characters.
I do appreciate if someone please guide me to the write track for solving this.
Thanks and Best Regards
How are you setting the UTF-8 character set header? I like to cover both options:
header('Content-Type: text/html; charset=UTF-8');
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Thanks NogDog , I did the both, but output had no difference. I ll post the code samples asap.
Oh, one other thing: if you are using htmlspecialchars() or htmlentities() functions, be sure to include the optional parameter to specify the encoding is UTF-8.
I havent use those functions.
Here you can see the page at http://tinyurl.com/ngajcvl.
See question marks in header section with a book icon.
I ve also attached files.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)