all pages in utf-8
but only latin characters displayed in toc
need fix!
Example - http://my.ukrweb.info/vidnovlennya-robotozdatnosti-windows-nt-2000-xp-vista
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | utf8_option_fix.patch | 821 bytes | deviantintegral |
| #2 | toc_bug_cyrillic.png | 12.41 KB | podarok |
Comments
Comment #1
deviantintegral commentedIt seems to be working for me (Opera 9.5 on OS X). Can you provide a screenshot, and can you check the source to see if the characters are showing in there but aren't being rendered by the browser?
Thanks,
--Andrew
Comment #2
podarokIn attachement - screenshot...
You can use text from my site (upper) for testing 8)) (cause drupal.org unsupporting cyrillic in comments 8(( )
When using cyrillic in first h1 - sometimes it works well
But if one latin word used in toc(in any place) - some of h1-6 not rendered 8(
And title: Table of contents;
When using Cyrillic - it never shows - rendered only "Table of contents' as default defined(at screenshot - localized version via drupal module "Localization")
Nice to see fix...
Comment #3
dami commentedSame problem here that utf-8 titles are not recognized, because it only expects titles consists of letter A-z, number 0-9 and spaces. A quick fix is change line 91 of tableofcontents.module from
to
Not sure if it opens any security problem, I am not an expert on it. But the string goes through t() function at line 135, so I guess it's ok then.
Comment #4
dami commentedThis is probably not a proper use of t() function. IIRC, the user defined title string won't be translatable by locale module. We may want to remove this line and just check_plain() at output.
Comment #5
deviantintegral commentedI'm thinking that a better solution would be to just allow any character other than a semicolon. Can you try the attached patch and let me know how it works?
I don't think there's a problem with the t() call - others haven't had problems, and I don't see any warnings about t() containing variables in the documentation.
Thanks,
--Andrew
Comment #6
deviantintegral commentedI have no idea if #5 is still relevant, but I'm marking this as normal to remove it from my critical queue.