WordPress Coding Help (Character Encoding Problem)

Social God

Supreme Member
Joined
Nov 29, 2018
Messages
1,363
Reaction score
1,326
I'm going to flood you with so much love for helping me with this T-T

Basically, one of my websites is displaying stranger characters and it's affecting mainly ( ' " ).

These changes to weird characters on mobile and I have no idea how to fix this.

I looked around for tutorials and found this: Fix Strange Character Encoding (IM NOT AFFILIATED WITH THIS)

This problem has been occurring for the last month and it's wasting so much of my time.

The tutorial says to change:

define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

to

//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');

----------------------------------------------------------------

I went on my wpconfig.php and found this code:

/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+

Does that mean I change it to

/** MySQL hostname */
//define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
//define('DB_COLLATE', '');
/**#@+

----------------------------------------------------------

To be honest, I'm not even 100% sure if this is the solution but I want to give it a shot without breaking anything on my site.

Any advice and info are appreciated! I'm losing bounce rate because of this, so if you can save me from this.

Thanks again BHW!
 
Back
Top