Login
Sign Up For Free
English
中文 (繁體)
中文 (香港)
中文 (简体)
日本語
Filipino
Bahasa Indonesia
Bahasa Melayu
Pусский
Português (Brasil)
Magyar
Français
Español
Deutsch
Čeština
العربية
Català
Dansk
Ελληνικά
فارسی
Suomi
Gaeilge
Hindi
עברית
Hrvatski
Italiano
Norsk bokmål
Nederlands
한국어
Polski
Română
Slovenský
Svenska
Türkçe
українська
беларуская
ไทย
Standard view
mrjink
hates
16 years ago
latin1 tables with utf8 data... You select it, it's latin1, you _pretend_ it's utf8 and it'll work.
latest #10
mrjink
says
16 years ago
You convert it to utf8, and everything is double encoded.
mrjink
says
16 years ago
it took me a while to figure that out. The old table I was converting wasn't mine.
Altreus
says
16 years ago
wait, you are saying that if you put utf8 data in a latin1 table it remains utf8?
立即下載
Altreus
says
16 years ago
as in, the table doesn't try to read it as latin1?
mrjink
says
16 years ago
no. It's like this. The table contains Marco² in latin1, but that should be rendered as utf8: Marco² .
mrjink
says
16 years ago
it's like displaying a utf-8 page in latin1. You see all the codepage selectors.
mrjink
says
16 years ago
so when I have MySQL do an INSERT SELECT, it complies, and changes all the opcodes to their utf-8 versions == double encoding hell.
jettero
says
16 years ago
I start all my tables utf8 ...
mrjink
says
16 years ago
I could fix it by doing: INSERT INTO
`utf8`
(
`newfield`
) SELECT BINARY
`oldfield`
FROM
`latin1`
;
mrjink
says
16 years ago
me too, which is why I was converting this old crap in the first place.
back to top
Delete
Reply
Edit
Cancel
Cancel