Page 1 of 1

Enabling special characters to be displayed?

Posted: Fri Oct 14, 2016 1:37 pm
by ElectrumGuy
For some reason, special characters like "☻" and "▬" are not being displayed at all on the website. Is there a way to enable these?

Re: Enabling special characters to be displayed?

Posted: Fri Oct 14, 2016 4:22 pm
by mehargags
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

Re: Enabling special characters to be displayed?

Posted: Fri Oct 14, 2016 6:04 pm
by ElectrumGuy
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
Its PHP files, no encoding it see from what I can find.

Where do I look at the locales?

Re: Enabling special characters to be displayed?

Posted: Fri Oct 14, 2016 6:32 pm
by mehargags
ElectrumGuy wrote: Its PHP files, no encoding it see from what I can find.
All files use a charset, and check if you are using unix or dos format
http://lmgtfy.com/?q=check+file+for+unix+or+dos+format
ElectrumGuy wrote: Where do I look at the locales?
http://bfy.tw/8C5A

Re: Enabling special characters to be displayed?

Posted: Fri Oct 14, 2016 7:18 pm
by ElectrumGuy
mehargags wrote:
ElectrumGuy wrote: Its PHP files, no encoding it see from what I can find.
All files use a charset, and check if you are using unix or dos format
http://lmgtfy.com/?q=check+file+for+unix+or+dos+format
ElectrumGuy wrote: Where do I look at the locales?
http://bfy.tw/8C5A
Locales returned:


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

Re: Enabling special characters to be displayed?

Posted: Tue Oct 25, 2016 11:41 pm
by ElectrumGuy
Any ideas?

Re: Enabling special characters to be displayed?

Posted: Fri Oct 28, 2016 7:30 am
by skurudo
special characters in text like php/html or do you read data from mysql base for example?

Re: Enabling special characters to be displayed?

Posted: Sat Oct 29, 2016 8:40 pm
by ElectrumGuy
skurudo wrote:special characters in text like php/html or do you read data from mysql base for example?
The data is being read from mysql.

Re: Enabling special characters to be displayed?

Posted: Sun Oct 30, 2016 5:42 am
by mehargags
ElectrumGuy wrote: The data is being read from mysql.
Check this Discussion... you need to set your Charset for Data pulled 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.