Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
46 user(s) are online (36 user(s) are browsing Forums)

Members: 0
Guests: 46

more...
Support us!
Recent OS4 Files
OS4Depot.net





Forum and Norwegian characters
Home away from home
Joined:
2006/11/30 18:43
From Norway
Posts: 2470
Hi,i've got a problem when using ib 2.4 and a norwegian bmw forum. When i write my text it works with norwegian characters æøå,but when posted they're left out. I was suggested to set encoding language to iso-8859-1. Is there a way to do that on the amiga???

   Report Go to top

Re: Forum and Norwegian characters
Just popping in
Joined:
2006/12/23 18:30
From UK
Posts: 63
@Antique

Can you post a URL? IBrowse currently does no charset mapping when posting form content, assuming the posted content to be the same charset as the page - IIRC, servers assume that too.

The exception is pages using utf-8 encoding, in which case IBrowse then assumes you are using iso-8859-1/windows-1252 and utf-8 encodes the form input accordingly. I must say I only vaguely remember implementing this, and I don't remember exactly why . I would have thought it was done with a test case in mind, but maybe there is something wrong there.

   Report Go to top

Re: Forum and Norwegian characters
Home away from home
Joined:
2006/11/30 18:43
From Norway
Posts: 2470
@Futaura

http://www.bmwCCN.no/nor/kapittel3/fora/melding.aspx?Id=353048

The page these chars are discussed.

   Report Go to top

Re: Forum and Norwegian characters
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1107
@Antique
As one of the posters there says, the problem is probably created by Opera.

And you can tell that Lars-Inge fella, that he's out on a limb claiming that AmigaOS has always had problems with Norwegian characters. Classic AmigaOS has always used ISO-8859-1 and only that; only with OS4 has it become possible to change the system charset at all. Well, unless you were using third-party "solutions" (hacks), that is.

Best regards,

Niels

   Report Go to top

Re: Forum and Norwegian characters
Just popping in
Joined:
2006/12/23 18:30
From UK
Posts: 63
@Antique

Quote:
Thanks. Didn't understand the discussion, but I managed to find the preview button

I can see the problem now. The page is utf-8, and therefore form data should be encoded to utf-8 also. I said before that IBrowse 2.4 already does this, but I have just realized it doesn't for multipart form data, unfortunately. An oversight on my part. Anyway, it's fixed for the next release, and I can confirm that the site referenced is now working.

BTW, I guess it could be argued that the site is a little silly to use utf-8 if the text is all iso-8859-1 anyway, which is pointless, thus wasting some bandwidth. Reminds me of certain UK shopping sites that use(d) utf-8, when the only utf-8 encoded chars tended to be the pound sign. Obviously, this didn't look too nice in IBrowse 2.3.

Interestingly, I noticed that <textarea> line breaks are not converted to CRLFs for multipart form data, unlike for regular forms, so I've fixed that too, although on the most part this probably doesn't matter too much except for dodgy webservers.

   Report Go to top

Re: Forum and Norwegian characters
Home away from home
Joined:
2006/11/30 18:43
From Norway
Posts: 2470
@Futaura

Thank you.

   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project