migrate of webhosting charset problems

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
chemical349
Forum Newbie
Posts: 3
Joined: Wed Oct 26, 2011 10:40 am

migrate of webhosting charset problems

Post by chemical349 »

The webhosting provider we are using is not good, we

want to change to another one.

we are using linux and php and we have a very small

mysql (only 100k) db.

we move the site, export & import the db, check all the

table is completely upload to the new hosting.

we move all the php pages, update the config.inc.php for

the new db name and locations.

But we have encounber one problems here, can someone

help me. the error message as follow:

Warning: html_entity_decode() [function.html-entity-

decode]: charset `UTF_8' not supported, assuming iso-

8859-1 in

/home/elmorecap/domains/elmorecapital.com/public_ht

ml/contactus.php on line 44

and in the file, line 44 is as follow:

<td class="link1"><div style="overflow:auto;

height:430px; width:660px;"><?=html_entity_decode

($rs->fields["description"], ENT_QUOTES,"UTF_8")?

></div></td>

i use phpinfo.php to check both server, the older one is

4.4.4-8+etch6 and the only difference about encoding is

in Configuration PHP Core's default_charset has "no value"

in the new 5.2.17 server.

i don't think i can change the server as it's a sharded one

but if i remove the whole line, the page cannot show, can

any expert can teach me what should i do to get ride of

this error message? (other then this error message, the

page appear perfectly ok)

i try to use comment '//' or '##' but it's will block

everything appear in the page afterward.


million thanks for your help in advance.
chemical349
Forum Newbie
Posts: 3
Joined: Wed Oct 26, 2011 10:40 am

Re: migrate of webhosting charset problems

Post by chemical349 »

anyone knew and willing to teach me a bit or shred me some light ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: migrate of webhosting charset problems

Post by Celauran »

chemical349 wrote:

Code: Select all

Warning: html_entity_decode() [function.html-entity-decode]: charset `UTF_8' not supported, assuming iso-8859-1 in /home/elmorecap/domains/elmorecapital.com/public_html/contactus.php on line 44
and in the file, line 44 is as follow:

Code: Select all

<td class="link1"><div style="overflow:auto; height:430px; width:660px;"><?=html_entity_decode($rs->fields["description"], ENT_QUOTES,"UTF_8")?></div></td>
The character set is UTF-8, not UTF_8.
chemical349
Forum Newbie
Posts: 3
Joined: Wed Oct 26, 2011 10:40 am

Re: migrate of webhosting charset problems

Post by chemical349 »

but this is what i ve got.
and may i ask what does it mean?

does it related to how to solve my problems?
Post Reply