[Vtigercrm-developers] Customer Portal

Christophe Humbert chrissc.humbert at gmail.com
Sun May 10 18:28:40 GMT 2015


Hello Olivier

Please find my utils.php

I think everything is covered (please validated)

Christophe


On Sun, May 10, 2015 at 6:53 PM, Christophe Humbert <
chrissc.humbert at gmail.com> wrote:

> Olivier
>
> yes in the portal language file but all fields translation coming from
> vtiger and not the portal are not in utf-8
>
> that are the ones to be encoded in the portal
>
>
>
> Christophe
>
> On Sun, May 10, 2015 at 5:52 PM, Olivier Hallot <
> olivier.hallot at libreoffice.org> wrote:
>
>> Yes it works, but IMHO it does not fix the issue. All strings are in
>> UTF-8 :
>>
>> ../language# file pt_br.lang.php
>> pt_br.lang.php: PHP script, UTF-8 Unicode text
>>
>> So, there must be something upstream that is changing the codepage of
>> the strings.
>>
>> After applying your fix I stumbled into another codepage issue as in the
>> image attached... line headers also have codepages issues, sometimes
>> yes, sometimes no...
>>
>> Kind regards
>>
>> Olivier
>>
>> On 10/05/2015 12:33, Christophe Humbert wrote:
>> > Ok maybe a little less aggressive
>> >
>> > remove what you have done before and replace line 194 with this one
>> > (still in utils.php in function
>> getblock_fieldlistview($block_array,$block)
>> > $list .=
>> >
>> "<th>".utf8_encode(getTranslatedString($header_arr[$i]['fielddata']))."</th>";
>> >
>> > Christophe
>> >
>> >
>> > On Sun, May 10, 2015 at 5:11 PM, Olivier Hallot
>> > <olivier.hallot at libreoffice.org <mailto:olivier.hallot at libreoffice.org
>> >>
>> > wrote:
>> >
>> >     That fix the table headers but breaks the left side panel.
>> >
>> >     On 10/05/2015 12:03, Christophe Humbert wrote:
>> >     > Hello Olivier,
>> >     >
>> >     > I think I found it
>> >     >
>> >     > in include/utils.php of the portal modify line 104 to
>> >     > return
>> >     >
>> (isset($app_strings[$str]))?utf8_encode($app_strings[$str]):utf8_encode($str);
>> >     >
>> >     > and it should work
>> >     >
>> >     > Christophe
>> >     >
>> >     >
>> >     > On Sun, May 10, 2015 at 4:58 PM, Olivier Hallot
>> >     > <olivier.hallot at libreoffice.org
>> >     <mailto:olivier.hallot at libreoffice.org>
>> >     <mailto:olivier.hallot at libreoffice.org
>> >     <mailto:olivier.hallot at libreoffice.org>>>
>> >     > wrote:
>> >     >
>> >     >     AFAI remember, I also changed the coding of the language
>> strings, to
>> >     >     check if it matters, but #fail.
>> >     >
>> >     >     Language strings in UTF-8 have their codepage changed on
>> building the
>> >     >     html content on these specific zones of the page.
>> >     >
>> >     >     regards
>> >     >
>> >     >     On 10/05/2015 11:51, Christophe Humbert wrote:
>> >     >     > Ok I have investigated and
>> >     >     > I f you put the UTF-8 encoding for you character in Vtiger
>> (not portal)
>> >     >     > where you have field translation it appearing ok on the
>> portal but not
>> >     >     > in Vtiger....so we should encode in utf-8 somewhere to have
>> both working...
>> >     >     >
>> >     >     > Christophe
>> >     >     >
>> >     >     > On Sun, May 10, 2015 at 4:43 PM, Christophe Humbert
>> >     >     > <chrissc.humbert at gmail.com <mailto:
>> chrissc.humbert at gmail.com>
>> >     <mailto:chrissc.humbert at gmail.com <mailto:chrissc.humbert at gmail.com
>> >>
>> >     >     <mailto:chrissc.humbert at gmail.com
>> >     <mailto:chrissc.humbert at gmail.com>
>> >     >     <mailto:chrissc.humbert at gmail.com <mailto:
>> chrissc.humbert at gmail.com>>>> wrote:
>> >     >     >
>> >     >     >     Hello Olivier,
>> >     >     >
>> >     >     >     I you change the page character set with your bowser
>> (chrome or
>> >     >     >     Firefox) for me if I choose
>> >     >     >
>> >     >     >
>> >     >     >         iso-8859-15 <tel:8859-15> <tel:8859-15
>> >     <tel:8859-15>> <tel:8859-15 <tel:8859-15> <tel:8859-15 <tel:8859-15
>> >>>
>> >     >     >
>> >     >     >
>> >     >     >     That is working and the page is well encoded in UTF-8
>> ....something
>> >     >     >     weird
>> >     >     >
>> >     >     >     Christophe
>> >     >     >
>> >     >     >
>> >     >     >     On Sun, May 10, 2015 at 4:24 PM, Olivier Hallot
>> >     >     >     <olivier.hallot at libreoffice.org
>> >     <mailto:olivier.hallot at libreoffice.org>
>> >     <mailto:olivier.hallot at libreoffice.org
>> >     <mailto:olivier.hallot at libreoffice.org>>
>> >     >     >     <mailto:olivier.hallot at libreoffice.org
>> >     <mailto:olivier.hallot at libreoffice.org>
>> >     >     <mailto:olivier.hallot at libreoffice.org
>> >     <mailto:olivier.hallot at libreoffice.org>>>> wrote:
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     >         On 10/05/2015 10:48, Christophe Humbert wrote:
>> >     >     >         > Hello
>> >     >     >         >
>> >     >     >         > I have a problem with the name of the fields in
>> >     the customer portal when
>> >     >     >         > they are translated with accent
>> >     >     >         > see
>> >     >     >         > Inline image 1
>> >     >     >         >
>> >     >     >         > Anyone has an idea on how to correct that?
>> >     >     >         > Christophe Humbert
>> >     >     >         >
>> >     >     >         >
>> >     >     >         >
>> >     >     >         > _______________________________________________
>> >     >     >         > http://www.vtiger.com/
>> >     >     >         >
>> >     >     >
>> >     >     >         I have the same issue in pt-BR, tried to hack it,
>> >     but gave up
>> >     >     >         with not a
>> >     >     >         clue on where this get messed.
>> >     >     >
>> >     >     >         http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8491
>> >     >     >
>> >     >     >
>> >     >     >         --
>> >     >     >         Olivier Hallot
>> >     >     >         Comunidade LibreOffice
>> >     >     >         http://ask.libreoffice.org/pt-br
>> >     >     >         _______________________________________________
>> >     >     >         http://www.vtiger.com/
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     >
>> >     >     > _______________________________________________
>> >     >     > http://www.vtiger.com/
>> >     >     >
>> >     >
>> >     >     --
>> >     >     Olivier Hallot
>> >     >     Comunidade LibreOffice
>> >     >     http://ask.libreoffice.org/pt-br
>> >     >     _______________________________________________
>> >     >     http://www.vtiger.com/
>> >     >
>> >     >
>> >     >
>> >     >
>> >     > _______________________________________________
>> >     > http://www.vtiger.com/
>> >     >
>> >
>> >     --
>> >     Olivier Hallot
>> >     Comunidade LibreOffice
>> >     http://ask.libreoffice.org/pt-br
>> >     _______________________________________________
>> >     http://www.vtiger.com/
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > http://www.vtiger.com/
>> >
>>
>> --
>> Olivier Hallot
>> Comunidade LibreOffice
>> http://ask.libreoffice.org/pt-br
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150510/aa413696/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.php
Type: application/x-httpd-php
Size: 10288 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150510/aa413696/attachment-0001.php>


More information about the vtigercrm-developers mailing list