Closed
Bug 383360
Opened 19 years ago
Closed 19 years ago
Misinterpretation of utf-8 characters in some form text controls
Categories
(Camino Graveyard :: HTML Form Controls, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: mitskin, Unassigned)
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/419 (KHTML, like Gecko) Safari/419.3
Build Identifier: Version 2007050909 (1.5)
In using the blogger.com blogging service to blog, Camino does not handles correctly displaying text encoded as utf-8 (greek characters) in the tect form control which holds the body of the post.
If I attempt to paste greek utf-8 text (written in TextMate or anywhere else) or if I attempt to switch OS X Input Source and type in Greek in the field, the result is the same: mangled text, as if the utf-8 is mistranslated for ISO-8859-1.
Utf-8 dislplay on the text edit control for the title of the post, works ok. The difference could be that the text area for the post body is created via AJAX and uses Javascript in order to provide a hybrid raw html/WYSIWYG editor for new posts.
Here is a photo of a textmate window holding the greek (utf-8) phrase, and how it is rendered after it is pasted in Camino.
http://farm2.static.flickr.com/1339/532145266_1dbac262c9_o.jpg
The same mangled rendering occurs if I try to type the phrase directly in the text box. The "title" and "link" boxes accept the text just fine when pasted in them.
Reproducible: Always
Steps to Reproduce:
1. Log in to a Blogger account ( http://www.blogger.com )
2. Select to "Create A New Post"
3. Try to paste greek utf-8 or to type greek utf-8 in the body field. For example: "δοκιμαστικό ελληνικό κείμενο"
Actual Results:
The greek text was shown as a mix of strange characters, like when a utf-8 multibyte string is read like ascii.
Expected Results:
To see the actual greek text, like it is shown in TextMate or every other OS X control and editor.
When I copy the mangled string back from the blogger text field in Camino and paste it back in another editor, I see the original, unmangled greek phrase.
This suggests that the string is there intact, only it's visual presentation is mangled.
Comment 1•19 years ago
|
||
This works for me using Camino 1.5 on Mac SO X 10.4.9. Do you have this problem with a new profile? Could you be spoofing your user agent? That could cause an issue.
Please try using a new profile with http://pimpmycamino.com/parts/troubleshoot-camino
<b>This works for me using Camino 1.5 on Mac SO X 10.4.9. Do you have this problem
with a new profile? Could you be spoofing your user agent? That could cause an
issue.</b>
I tried it with a new blank profile throu your App and the problem is gone.
But I was able to reproduce the problem by adding these lines to the prefs.js file from the old prefs.js (everything else being in the new clean state):
user_pref("font.minimum-size.x-unicode", 11);
user_pref("font.name.monospace.el", "Andale Mono");
user_pref("font.name.monospace.x-unicode", "Trebuchet MS");
user_pref("font.name.serif.el", "Trebuchet MS");
user_pref("font.name.serif.x-unicode", "Times New Roman");
With these are added to the new default prefs.js, the problem reappears.
(I do have this fonts installed, via Microsoft Office).
Comment 3•19 years ago
|
||
Could you try this with one of the Camino 2.0a1pre nightlies (available at <http://ftp.mozilla.org/pub/mozilla.org/camino/nightly/latest-trunk/>)? This is probably one of the core font bugs that may well have been fixed with the new font rendering code.
With the 2.0a1pre the text renders correctly, even with the added options in prefs.js
However, the greek part of it renders in italic. I have not set any of the fonts to be in italic. In fact, my prefs.js regarding the fonts is:
user_pref("font.minimum-size.x-unicode", 11);
user_pref("font.name.monospace.el", "Courier New");
user_pref("font.name.monospace.x-unicode", "Courier New");
user_pref("font.name.monospace.x-western", "Courier New");
user_pref("font.name.sans-serif.x-unicode", "Lucida Grande");
user_pref("font.name.serif.el", "Courier New");
user_pref("font.name.serif.x-unicode", "Courier New");
user_pref("font.name.serif.x-western", "Courier New");
user_pref("font.size.fixed.x-unicode", 14);
user_pref("general.useragent.locale", "en");
user_pref("intl.accept_languages", "en-US,en,el");
Again, the greek strings show correctly (and in regular, not italic font) in the Title and Link textboxes.
Comment 5•19 years ago
|
||
I'm pretty sure the italic rendering is another known Core bug, so this is either a dupe or simply a WORKSFORME (since the problem is fixed but we're not sure which specific code change fixed it). I'm gonna mark as WFM, but if someone knows the specific dupe, please mark as such.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•