Enabling special characters to be displayed?
-
- Posts: 7
- Joined: Fri Mar 04, 2016 12:30 am
Enabling special characters to be displayed?
For some reason, special characters like "☻" and "▬" are not being displayed at all on the website. Is there a way to enable these?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Enabling special characters to be displayed?
There are some steps to check here...
1. What is your file's Character Set Encoding? Some old html files can have ISO-8859-1 which you may need to convert to UTF-8
2. check your locales
1. What is your file's Character Set Encoding? Some old html files can have ISO-8859-1 which you may need to convert to UTF-8
2. check your locales
-
- Posts: 7
- Joined: Fri Mar 04, 2016 12:30 am
Re: Enabling special characters to be displayed?
Its PHP files, no encoding it see from what I can find.mehargags wrote:There are some steps to check here...
1. What is your file's Character Set Encoding? Some old html files can have ISO-8859-1 which you may need to convert to UTF-8
2. check your locales
Where do I look at the locales?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Enabling special characters to be displayed?
All files use a charset, and check if you are using unix or dos formatElectrumGuy wrote: Its PHP files, no encoding it see from what I can find.
http://lmgtfy.com/?q=check+file+for+unix+or+dos+format
http://bfy.tw/8C5AElectrumGuy wrote: Where do I look at the locales?
-
- Posts: 7
- Joined: Fri Mar 04, 2016 12:30 am
Re: Enabling special characters to be displayed?
Locales returned:mehargags wrote:All files use a charset, and check if you are using unix or dos formatElectrumGuy wrote: Its PHP files, no encoding it see from what I can find.
http://lmgtfy.com/?q=check+file+for+unix+or+dos+format
http://bfy.tw/8C5AElectrumGuy wrote: Where do I look at the locales?
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
charset for file is: charset=utf-8
-
- Posts: 7
- Joined: Fri Mar 04, 2016 12:30 am
Re: Enabling special characters to be displayed?
special characters in text like php/html or do you read data from mysql base for example?
-
- Posts: 7
- Joined: Fri Mar 04, 2016 12:30 am
Re: Enabling special characters to be displayed?
The data is being read from mysql.skurudo wrote:special characters in text like php/html or do you read data from mysql base for example?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Enabling special characters to be displayed?
Check this Discussion... you need to set your Charset for Data pulled from MySQLElectrumGuy wrote: The data is being read from mysql.
Code: Select all
mysql_query("SET NAMES 'utf8';", $link);
mysql_set_charset('utf8',$link);
It took you 15 days to post the information which should be there on Day one! Please try to post information correctly so that people can give you proper help.