Re: Newby needs some help - collation/charset ?
Rick James Wrote:
-------------------------------------------------------
> Add this at the end of the function:
> mysql_set_charset('latin1',
> $this->connection_id);
>
> Then watch for other things to break.
Ok, adding that line to the sql driver file resulted in my being able to run all the problematic scripts I wanted - yeehaa!!! (and a big Thank you!).
However, with that line in there some of the posts on the site which had strange characters would not appear correctly. So, I took the line back out and...same thing.
At that point I re-started the web server and looked again - all fine. So it seems that either the connection is persistent or my opcode cache didn't pick up on the change.
So, we managed to work-around it, which is really, really fantastic.
Is it worth pursuing trying to figure out how to fix this on a permanent basis?
Lastly, should I be using utf-8 site-wide? It now seems almost the entire site has been changed over to it.
This is really great Rick - you just helped me fix something that I needed badly! Ultimately, this means (among other things) I can easily embed videos into my forum :)
Subject
Written By
Posted
December 14, 2013 01:08PM
December 15, 2013 04:19AM
December 16, 2013 05:25PM
December 16, 2013 07:35PM
December 16, 2013 08:48PM
December 16, 2013 10:07PM
December 17, 2013 05:19PM
December 18, 2013 01:02AM
December 18, 2013 01:36PM
December 18, 2013 03:34PM
December 18, 2013 05:10PM
December 18, 2013 05:37PM
December 18, 2013 06:28PM
December 20, 2013 01:09PM
December 20, 2013 03:24PM
December 20, 2013 03:37PM
December 20, 2013 06:59PM
Re: Newby needs some help - collation/charset ?
December 20, 2013 09:20PM
December 21, 2013 12:55AM
December 21, 2013 01:31AM
December 21, 2013 02:12AM
December 21, 2013 02:49AM
December 21, 2013 01:11PM
December 22, 2013 04:04PM