Latest teaching jobs:

Google

Buy the EFL Teachers' Guide to Russia online! Instant download. Support VisaRus!New!
Download the entire VisaRus School Directory!New!

Viewing topic: Messed-up characters in the school directory

Forum Index » Site support issues

Forum status: read-only (request forum permissions)
bobs12 User is offline

Saint Petersburg
Crusty Tech Support Veteran
Posts: 914
 Messed-up characters in the school directory  4th Sep '07 11:50 PM

Er... I meant to do that, honest... no, actually, I didn't.

As part of the process of revamping the site I'm changing everything to a different character encoding. Unfortunately something has gone slightly awry.

Not to worry, everything is backed up and safe and will all be shipshape shortly!


___________________________________________________
I demand a shrubbery.
reply | quote | send private message | report abuse
bobs12 User is offline

Saint Petersburg
Crusty Tech Support Veteran
Posts: 914
 All's well that ends well 5th Sep '07 3:53 AM

Probably nobody's even noticed - half of the visitors will just think the nonsense characters are Russian

Panic over - after about 5 hours of slaving away I finally got it to work.

Conclusion - MySQL and UTF-8 aren't the most fun combination to work with.

The database has been repaired and everything will be looking normal by Friday. I promise

For anyone who's interested, the problem was partly in the fact that the phpMyAdmin on my server doesn't seem to like utf-8 at all. A bit of Googling showed that I'm not alone with the problem. The solution: take an earlier dump of the database and by a process of elimination, search and replace the nonsense characters for their correct Cyrillic equivalents.

That was fun, but not all - it wouldn't go into the database as UTF-8 by importing through myAdmin. The hosting company seems to have turned off mysqldump and associated features, leaving me with only one option to get the data stored as UTF-8 (well, there were others, probably, but this was what I came up with) - take the dump and execute it as a series of mysql_queries in .php files saved as UTF-8.

A bit extreme, but it worked! I'm off to bed now, as it is almost 7am and I have to work today

reply | quote | send private message | report abuse
Elli_T User is offline

Saint Petersburg
Piglet =)
Posts: 3
 ;) 5th Sep '07 7:26 AM

poor Bob =)
student's site still doesn't look good

Ѡ鲠VisaRus
Į져 񲰠༯a>
Ԯ𳬼/a>
Ѯ孨?>
İ󧼿 ﮠ殺寨񪥼/a>
ä堳?񿼯b>
ت 蠪󰱻 ⠐証/a>
Ρ𠧮⠲嫼 ﳲ帥񲢨?>
ت 砠𳡥殬

נ񲭻堳?뿠⠐証/span>
английского (41)
итальянского (1)
Р СѓСЃСЃРєРѕРіРѕ (1)
испанского (1)

reply | quote | send private message | report abuse
coledavis User is offline

London
Innocent Civilian
Posts: 15
  26th Oct '07 9:06 PM

Yes I still get funny script (and yes, I can read Russian), in spite of messing with my 'view' submenu for ages.

reply | quote | send private message | report abuse
bobs12 User is offline

Saint Petersburg
Crusty Tech Support Veteran
Posts: 914
  26th Oct '07 11:19 PM

Can you send me a URL to one/some of the pages that are showing up weird?

It *should* all be UTF-8...

reply | quote | send private message | report abuse
coledavis User is offline

London
Innocent Civilian
Posts: 15
  27th Oct '07 12:31 AM

Ah, I think you've sorted out the problem. All the school listings now appear in cyrillic and not the mad P_P language, and it works under Internet Explorer and Mozilla Firefox. (You must be burning the midnight and early morning oil.)

reply | quote | send private message | report abuse
coledavis User is offline

London
Innocent Civilian
Posts: 15
  27th Oct '07 12:35 AM

I've used Mysql with PHP and with Java, but fortunately not incorporating cyrillic.

reply | quote | send private message | report abuse
bobs12 User is offline

Saint Petersburg
Crusty Tech Support Veteran
Posts: 914
  27th Oct '07 1:30 AM

Yeah, generally there are no problems with non-latin as long as the encoding on pages with forms for input to MySQL is the same as on those that display the output. No matter what character set MySQL is set to, what goes in should come out the same, although it may be stored in a pretty weird way.

So weird things happened when I changed the site page encoding to UTF-8

reply | quote | send private message | report abuse
  Page 1

Add to: del.icio.us   digg   furl   magnolia   reddit   spurl   spurl   Y!

Random Quote by Oscar Fingall O'Flahertie Wills Wilde
"The mere mechanical technique of acting can be taught, but the spirit that is to give life to lifeless forms must be born in a man. No dramatic college can teach its pupils to think or to feel. It is Nature who makes our artists for us, though it may be Art who taught them their right mode of expression."

RSS random quotes for your site