Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Enabling special characters to be displayed?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
ElectrumGuy
Posts: 7
Joined: Fri Mar 04, 2016 12:30 am

Enabling special characters to be displayed?
  • Quote

Post by ElectrumGuy » Fri Oct 14, 2016 1:37 pm

For some reason, special characters like "☻" and "▬" are not being displayed at all on the website. Is there a way to enable these?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Enabling special characters to be displayed?
  • Quote

Post by mehargags » Fri Oct 14, 2016 4:22 pm

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
Top

ElectrumGuy
Posts: 7
Joined: Fri Mar 04, 2016 12:30 am

Re: Enabling special characters to be displayed?
  • Quote

Post by ElectrumGuy » Fri Oct 14, 2016 6:04 pm

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?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Enabling special characters to be displayed?
  • Quote

Post by mehargags » Fri Oct 14, 2016 6:32 pm

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
Top

ElectrumGuy
Posts: 7
Joined: Fri Mar 04, 2016 12:30 am

Re: Enabling special characters to be displayed?
  • Quote

Post by ElectrumGuy » Fri Oct 14, 2016 7:18 pm

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
Top

ElectrumGuy
Posts: 7
Joined: Fri Mar 04, 2016 12:30 am

Re: Enabling special characters to be displayed?
  • Quote

Post by ElectrumGuy » Tue Oct 25, 2016 11:41 pm

Any ideas?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Enabling special characters to be displayed?
  • Quote

Post by skurudo » Fri Oct 28, 2016 7:30 am

special characters in text like php/html or do you read data from mysql base for example?
Top

ElectrumGuy
Posts: 7
Joined: Fri Mar 04, 2016 12:30 am

Re: Enabling special characters to be displayed?
  • Quote

Post by ElectrumGuy » Sat Oct 29, 2016 8:40 pm

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.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Enabling special characters to be displayed?
  • Quote

Post by mehargags » Sun Oct 30, 2016 5:42 am

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.
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password