Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   Font in database (http://www.bvlist.com/showthread.php?t=12413)

darknight1 21st August 2021 22:49

Font in database
 
Hello who can tell me what I need to set in my database that the font is displayed correctly on my page. A lot of question marks and other characters are displayed - it is in Greek,:wallbash::wallbash::wallbash:

DND 21st August 2021 22:50

utf8 encoding
utf8 connection
utf8 character set
i recommend to use utf8mb4_unicode_ci with mysql 8 for your tables

darknight1 21st August 2021 23:19

I got it from another database and everything worked there and now it doesn't

hon 22nd August 2021 21:10

darknight1: because I know Greek add utf8_general_ci in databese and in the php script taking the values from the database set utf8

After you connect to the mysql, do this query to make sure that you are using UTF8:
PHP:
PHP Code:

mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET 'utf8'"); 

Make sure that in HTML (head) you are using the right encoding
HTML:
HTML Code:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
if this does not help, try different encoding, like ISO-8859-1


All times are GMT +2. The time now is 02:16.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.