Skip to content
Advertisement

Tag: character-encoding

UTF 8 and Windows 1254 charset mismatch

I’m using Drupal 7. And i created a block and embed this code: My site charset: And external link charset is: So, when get some info on external link, i have character problem (don’t seen İ, ç, ş etc..) How can i solve this? Answer In your block, I would create these two lines: so this page’s contents will be

Convert latin1 characters on a UTF8 table into UTF8

Only today I realized that I was missing this in my PHP scripts: All my tables are InnoDB, collation “utf8_unicode_ci”, and all my VARCHAR columns are “utf8_unicode_ci” as well. I have mb_internal_encoding(‘UTF-8’); on my PHP scripts, and all my PHP files are encoded as UTF-8. So, until now, every time I “INSERT” something with diacritics, example: The ‘name’ contents would

Detect file encoding in PHP

I have a script which combines a number of files into one, and it breaks when one of the files has UTF8 encoding. I figure that I should be using the utf8_decode() function when reading the files, but I don’t know how to tell which need decoding. My code is basically: Currently, at the start of a UTF8 file, it

Advertisement