SoaringCanada.riq.ca Forum Index SoaringCanada.riq.ca

 
AlbumAlbum  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A very expensive Pik 20B

 
Post new topic   Reply to topic    SoaringCanada.riq.ca Forum Index -> SAC Web Site
View previous topic :: View next topic  
Author Message
Jean Richard



Joined: 29 Sep 2003
Posts: 1475
Location: Montréal

PostPosted: Thu Apr 17, 2008 20:53    Post subject: A very expensive Pik 20B Reply with quote

Due to erroneous or obsolete settings, gliders in the classifieds are getting very expensive.

For exemple, C-FLPS is announced at 35 000 €, which is 56 180 $.

I tried with 4 different browsers and only one displayed $35 000. That one was Internet Explorer 5, which is a very old and obsolete piece of software that nobody is using anymore.

Maybe you will see $35 000 if your operating system is in English, since your default settings will automatically display it that way. But maybe somebody in UK will read 35 000 £, which is 70 129 $. Very very expensive for a Pik 20B.
_________________
Jean Richard
Montréal
Back to top
View user's profile Send private message
blizzard



Joined: 27 Nov 2003
Posts: 11
Location: Alberta

PostPosted: Fri Apr 18, 2008 10:24    Post subject: Reply with quote

In English with FireFox it shows correctly as $35000.

Must be the language settings.
Back to top
View user's profile Send private message
Jean Richard



Joined: 29 Sep 2003
Posts: 1475
Location: Montréal

PostPosted: Fri Apr 18, 2008 10:29    Post subject: Reply with quote

blizzard wrote:
In English with FireFox it shows correctly as $35000.

Must be the language settings.


Yes, language and mostly encoding. But at website end, not user's one.
_________________
Jean Richard
Montréal
Back to top
View user's profile Send private message
sps



Joined: 29 Sep 2003
Posts: 97
Location: Winnipeg Gliding Club

PostPosted: Fri Apr 18, 2008 20:03    Post subject: Reply with quote

I think I've fixed the problem. A dollar sign is now showing up after the price.

As you guys surmised, the program was incorrectly set up to display the wrong currency symbol when French was selected as a language. Joomla and applications written for Joomla do internationalization by having all labels which show up on a page stored as variables. These variables are set with respect to the language preference that you have chosen.

It would be nice if there was one place to set regional settings (such as currency sign or date display) but it doesn't appear that that is the case.

If you notice anything else like this, please let us know so we can see if we can fix it.

Thanks!
Back to top
View user's profile Send private message Visit poster's website
Jean Richard



Joined: 29 Sep 2003
Posts: 1475
Location: Montréal

PostPosted: Fri Apr 18, 2008 20:34    Post subject: Reply with quote

Yes, the currency problem appears to have been fixed. I now see $ and no more €.

But there's still something funny...

Character encoding is not the same everywhere. There's a mix of UTF-8 (which is now the most used on the web for European languages UTF-16 is mostly used for Asian ones) and html (which is less and less used). That means that some characters are OK while some are not (once again, you won't note it if you go for 100 % English).

For exemple, if you select French in the main page and then go to classified and select the Pik-20B, having your browser set to UTF-8 will display correctly “Mot de passe oublié” at the left lower corner, but in the middle of the page, just at the top of the Pik-20B announce, you will read “Tr?s bon Etat”. Switching your browser manually to ISO-8859-15 will reverse the result.
_________________
Jean Richard
Montréal
Back to top
View user's profile Send private message
sps



Joined: 29 Sep 2003
Posts: 97
Location: Winnipeg Gliding Club

PostPosted: Sat Apr 19, 2008 08:53    Post subject: Reply with quote

I looked at the code underlying your examples. Whether or not the accented characters display properly is a matter of how they were entered/stored by the people who wrote each component.

I can take the accented characters from the "login" component and copy them into a test version of the classified ads component and those copied in characters will display properly on the website. Unfortunately, the ones that were entered in the classifieds component display incorrectly.

Here's a cut and paste of what it looks like from my editor:

DEFINE ("ADSMANAGER_CONTACT_NOT_LOGGED", "Pour avoir accès accès au contact, identifiez-vous ou inscrivez-vous");

The funny thing is the version of the word accès which shows up correctly in the above line is the one that shows up incorrectly in Joomla. The one with the funny character here shows up correctly in Joomla.

The bottom line for the accented characters in the classifieds is that every single accented character has been stored incorrectly even though they look OK in the file.

You wouldn't happen to know of an Linux editor which would handle the storing of the accented characters properly, would you?

Susan

P.S. To make matters more interesting, when you enter accented characters while writing articles, the accented characters are translated into the HTML for the characters (è etc.) and stored in the database that way :)
Back to top
View user's profile Send private message Visit poster's website
sps



Joined: 29 Sep 2003
Posts: 97
Location: Winnipeg Gliding Club

PostPosted: Sat Apr 19, 2008 16:31    Post subject: Reply with quote

Eureka! I think...

I found a utility which converts between character sets and ran the classifieds french labels file through it. I converted the file from iso-8859-1 to utf-8 and it looks like things are displaying better.

If anybody notices other places where this problem exists, let us know and maybe the same solution will apply.

Susan
Back to top
View user's profile Send private message Visit poster's website
Jean Richard



Joined: 29 Sep 2003
Posts: 1475
Location: Montréal

PostPosted: Sat Apr 19, 2008 22:24    Post subject: Reply with quote

sps wrote:
Eureka! I think...

I found a utility which converts between character sets and ran the classifieds french labels file through it. I converted the file from iso-8859-1 to utf-8 and it looks like things are displaying better.

If anybody notices other places where this problem exists, let us know and maybe the same solution will apply.

Susan


It's good here too.

I found another one with the same problem. From home page, Popular News, the last one CVVM - MSC 2007 - L'année des kilomètres, and if you open it, the same appears, but all in capital letters.

Thanks !
_________________
Jean Richard
Montréal
Back to top
View user's profile Send private message
sps



Joined: 29 Sep 2003
Posts: 97
Location: Winnipeg Gliding Club

PostPosted: Sun Apr 20, 2008 07:34    Post subject: Reply with quote

The accented characters are now showing up properly in the article subject line.

This was a different problem then the Classified Ads problem as article subject lines and article details are actually stored in the underlying MySQL database and the entered characters supposedly go through some sort of sanitization process.

Unfortunately, I solved the problem before I went and looked at things at the database level, so I'm not exactly sure what went wrong in the storing of the accented characters. If it happens again then I will remember to look at the database first.

Thanks for pointing out the problem!

Susan
Back to top
View user's profile Send private message Visit poster's website
Martin GAGNON II



Joined: 12 May 2006
Posts: 158
Location: Montréal

PostPosted: Wed May 28, 2008 17:22    Post subject: Reply with quote

sps wrote:
Eureka! I think...

I found a utility which converts between character sets and ran the classifieds french labels file through it. I converted the file from iso-8859-1 to utf-8 and it looks like things are displaying better.

If anybody notices other places where this problem exists, let us know and maybe the same solution will apply.

Susan


I am working on the AVVChamplain site: is it possible to know what is this utility (as I have the problem with another Joomla site...) ?

By the way, have a look at www.avvc.qc.ca
_________________
Martin GII
Back to top
View user's profile Send private message Send e-mail
sps



Joined: 29 Sep 2003
Posts: 97
Location: Winnipeg Gliding Club

PostPosted: Sat May 31, 2008 08:14    Post subject: Reply with quote

Martin GAGNON II wrote:
I am working on the AVVChamplain site: is it possible to know what is this utility (as I have the problem with another Joomla site...) ?

By the way, have a look at www.avvc.qc.ca


I used a linux utility called tcs (translate character sets). Here is the syntax I think used:

Code:

# take backup of language file
cp lang_french.php lang_french.php.20080419
# translate from 8859-1 to utf
cat lang_french.php.20080419 |tcs -f 8859-1 -t utf > lang_french.php


Here's hoping that this helps!

Susan

P.S. I just looked at your website. Very nice work!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SoaringCanada.riq.ca Forum Index -> SAC Web Site All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group