Re: Character conversions?
Lorenzo Patocchi <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Organization | Cryms sagl |
| Message-ID | <[email protected]> |
Hello Lars, are You using struts tags to display the values ? as http://struts.apache.org/struts-taglib/tagreference-struts-bean.html the <Bean:Write> tag has a Filter attribute that can be set to false (default is true) Your sorting may not work because java compares the chars using decimal character conversion, so 'à ' is not equal 'A' and will not be grouped toghether. Checkout first if the HTMLization is made by struts. If Yes i may search some code to convert 'à ' -> 'A' and then you perform the sort. BR, Lorenzo [email protected] wrote: > I looked att the demo site and it looks nice but I am sorry to say > that it does not solve my problem. > > I have to explain! > > The characters are perfectly displayed by the web browser but if you > look att the html source you can se the ÅÄÖ > It is actually very god to use this encoded style because it works > everywhere. > > My problem is not about the display (which is god) but about that I > currently do not know how to get the original characters from the > Jahia Field object. Of course I can convert them back again character > for character but it would be better if I could get the original > string by using some alternative property. > > I looked into the database and the values seems to be stored as UTF8 > encoded. > > I have done a lot of template developing but always try do it by using > taglibs. > > There may be a way to do it by using the jahia java api in the jsp > template. > > What I am trying to do is a wordlist template. A sort of index page > like the java doc index page. There is a description field and an > optional link for each word as well. > > When I iterate over the words I look for the first character because I > want to create row with links (A B C D...) but only if there is at > least one occurence. > > I also want to sort the container objects by the word (titles). > > The sorting does not work att all because the ÅÄÖ will > put words like à land and Ãland before Alfa, Beta,Gamma. > > So I repeat the question: When is the conversion à land > -> Åland taking place and is the original word available? > > Regards > /Lars Hagrot > > > -----Stéphane Croisier <[email protected]> wrote: ----- > > To: <[email protected]> > From: Stéphane Croisier <[email protected]> > Date: 01/17/2006 02:23PM > Subject: Re: Character conversions? > > > Just tested on the online demo... and itseems to works fine: > http://www.jahia.org/demo/Jahia/pid/1 > <http://www.jahia.org/demo/Jahia/pid/1> > > > At 14:14 17.01.2006, you wrote: >> Jahia 4.1.0_01 configured for UTF-8 and database is MySql >> configured for UTF8. >> >> I think the conversion is done by jahia but of course I can >> navigate to a database table of your suggestion and do a select >> to find out what's in the database. >> >> I have seen some getHtml method in the jahia java source which >> replaces characters like the one I ask about and of course I can >> browse the sources to find out if it is called before the field >> is stored but I could spare time by asking you gurus. >> >> Regards >> /Lars >> >> >> >> >> > > -- Lorenzo Patocchi Dipl. Ing. STS/ETS/HTL [email protected] - www.cryms.com Tel: +41 91 60 55266 Cel: +41 79 375 0891 Fax: +41 91 223 9797 Cryms sagl Via Cantonale 34a 6928 Manno - Lugano Switzerland
smime.p7s
(application/x-pkcs7-signature, 3.3 KB) - not displayed