Re: Multibyte Character References

Michael Wang
Sat, 08 Sep 2007 01:22:20 -0000

Mark Dodwell wrote:
> Hi Michael,
>
> The DB is ''ISO Latin 1 (latin1)'' encoding.
>
> I''m not sure about the original YAML file (do you know the default
> encoding for .to_yaml?) - but when I open it directly with, say
> TextMate, it shows the character reference *not* the actual character.
>
> Thanks,
>
> ~ Mark

MySQL, if that''s what you are using, let''s you set the
character
encoding at various different levels (server, database, table, column).
If you are using MySQL you could try something like an ALTER TABLE to
change the encoding to UTF-8 (which I''m guessing is what the original
YAML data is in). You might have to export the data and import it into a
table that''s already set to UTF-8, though, in which case if you still
have all the YAML data around it might be easier just to reload that
with the table set to the proper encoding.

http://dev.mysql.com/doc/refman/5.0/en/charset.html


--
Michael Wang