Are you sure your db connection is using UTF-8?
BTW, I noticed an error in my last reply. It should be SET NAMES
'utf8'; (no '-')
On Thu, Aug 27, 2009 at 4:01 AM, danfreak wrote:
>
> the main encoding problem is in a shell script:
>
> The script imports RSS from 10 different sources once every h
the main encoding problem is in a shell script:
The script imports RSS from 10 different sources once every hour and
stores them in DB.
In order to normalize the grabbed content I use:
foreach ($feed->get_items() as $item){
$myitem['title'] = trim($item->get_ti
How are you moving the data between servers? And are you using MySQL?
It can be a real PITA when it comes to UTF-8. I've noticed, for
example, that PHPMyAdmin fails to include a line, 'SET NAMES utf-8' in
the dumps it produces, which can mean that MySQL will b0rk the text
when it's read in.
On We
>From phpinfo()
I have Apache:
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
on both servers.
Dev server:
PHP Version 5.2.6
MySQL 5.0.67
-
Cheers guys,
well my problem is mainly related to the DB entries.
I'm deploying my application to the production server with capistrano,
pulling the application from a github (git) repository.
I have teh following DB config:
var
On Tue, Aug 25, 2009 at 9:18 AM, Martin
Westin wrote:
> (..)
> It can be the webserver forcing it's default encoding on html and text
> output.
>From my experience, there's a high probability you're
having this issue.
If you're using Apache webserver on remove machine,
try to add the following l
If your sure that :
- Your db encoding is correctly set
- Your files are correctly saved as utf
- You've added the correct $html->charset() in your view
You can try adding a AddDefaultCharset utf-8 to your .htaccess and/or
Configure::write('App.encoding', utf-8') in your bootstrap.php file
On Au
You should try to pin-point it a bit.
Is the browser receiving the correct encoding in the header?
Is the problem for static text in the layout or text from the
database?
Is the problem there for both old data and new data?
There are many little details that are important since you can
potential
Hey guys,
I have a weird issue!
On my local machine everithing works fine, while on the remote one I
don't get utf-8 encoding working properly.
- DB is utf8 encoding in both machines
- files should be saved with utf-8 encoding on both
Did you experience similar problems and have any advice?
T