Jump to content

Recommended Posts

quite few, but to lithe explanation ;D

 

jokes aside. i had teh same problem to for some time. you probably made one of the files which contain your php code in a difrent code than the encoding you are giving in the header of your html.... you will have quite a mess to corect it.

 

go to all files and save them in the utf or what ever encoding you are using.

 

:D  ;D

 

Found it! In my code all page output is from a buffer that is UTF-8.

 

I changed part of my code from:

 

	// Encode HTML to UTF-8
	if($htmlencode == true)
	{
		// HTML is not UTF-8 Encoded
		if(mb_detect_encoding($buffer) != 'UTF-8' || 
			mb_detect_encoding($buffer) != 'UTF8')
		{
			// Enforce UTF-8 Encoding
			$buffer = utf8_encode($buffer);
		}
	}

 

to:

 

	// Encode HTML to UTF-8
	if($htmlencode == true)
	{
		// HTML is not UTF-8 Encoded
		if(mb_detect_encoding($buffer) != 'UTF-8')
		{
			// Enforce UTF-8 Encoding
			$buffer = utf8_encode($buffer);
		}
	}

 

Thanks for replying :D

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.