Loading...
  Lost your password? Lost your Username? Make a new account!  
Warez Home  
FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Go Back   Warez Home > General Development Issues

General Development Issues Want to discuss an issue that is not related to any particular programming language? Discuss general development issues and design theory.


Reply
 
Thread Tools Display Modes
Old 03-10-2010, 12:02 PM   #1
wisam
Administrator
 
Join Date: Nov 2006
Posts: 164,805
Lightbulb Encoding confusion: most odd!

On the office website there's a search form in the middle of the page. The site itself is using ISO 8859-1, for historical reasons. The search application, a Java app, uses UTF-8, so the search form has an accept-charset="utf-8" attribute.

We have serious trouble when searching for phrases that includes non-ASCII characters, like the Swedish letters, 'å', 'ä', 'ö'. For testing purposes you can try searching for 'grön' (means 'green').

In Opera, everything works just fine.

In IE7, the first search is fine, but all subsequent searches with non-ASCII characters fail. Instead of 'grön' the search box on the result page shows 'gr�' (the last character is U+FFFD, i.e., the Unicode 'replacement character').

In Firefox (we're stuck with 3.0.7), Safari and Chrome, the first search fails if it contains non-ASCII characters, but all subsequent searches work. In this case the result page search box shows 'grön', so it looks like UTF-8 that has been interpreted as ISO 8859-1 and then encoded as UTF-8.

Does anyone have any ideas what could be going on here? Or should we just try to convince the rest of the world to use Opera once and for all?
wisam is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
scope confusion wisam JavaScript 0 02-12-2010 03:13 AM
.me confusion wisam Domain Names 0 12-05-2009 06:01 AM
Much confusion over document encoding wisam PHP 0 11-19-2009 03:11 AM
PR Confusion wisam Google 0 08-23-2009 03:36 PM
PHP/MySQL confusion wisam All About Tutorials 0 05-06-2009 11:57 PM


eXTReMe Tracker
 
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
   
All times are GMT. The time now is 06:13 PM.  
 
Style by MafiiOso