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