<div dir="ltr"><div><div>Hello Olivier,<br><br></div>and with this one<br><br></div>Kind Regards<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Christophe Humbert<br><i>IT Program Manager</i><br><b>CoProcess S.A</b><br>+352 691 391 974<br>+33 6 50 09 48 88<br>Skype: chris.e.humbert<br><br></div></div>
<br><div class="gmail_quote">On Mon, May 11, 2015 at 1:35 PM, Christophe Humbert <span dir="ltr"><<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes it is shitty<br></div><div class="gmail_extra"><br clear="all"><div><div>Christophe Humbert<br><i>IT Program Manager</i><br><b>CoProcess S.A</b><br><a href="tel:%2B352%20691%20391%20974" value="+352691391974" target="_blank">+352 691 391 974</a><br><a href="tel:%2B33%206%2050%2009%2048%2088" value="+33650094888" target="_blank">+33 6 50 09 48 88</a><br>Skype: chris.e.humbert<br><br></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Mon, May 11, 2015 at 12:52 PM, Olivier Hallot <span dir="ltr"><<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Oh that would be funny if that's wasn't a bug...<br>
<br>
Your fix now breaks another line headers that worked before. See image<br>
attached, compared to the previous.<br>
<br>
Kind regards<br>
<br>
Olivier<br>
<span><br>
<br>
On 10/05/2015 15:28, Christophe Humbert wrote:<br>
> Hello Olivier<br>
><br>
> Please find my utils.php<br>
><br>
> I think everything is covered (please validated)<br>
><br>
> Christophe<br>
><br>
><br>
> On Sun, May 10, 2015 at 6:53 PM, Christophe Humbert<br>
</span><span>> <<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>>> wrote:<br>
><br>
> Olivier<br>
><br>
> yes in the portal language file but all fields translation coming<br>
> from vtiger and not the portal are not in utf-8<br>
><br>
> that are the ones to be encoded in the portal<br>
><br>
><br>
><br>
> Christophe<br>
><br>
> On Sun, May 10, 2015 at 5:52 PM, Olivier Hallot<br>
> <<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
</span><span>> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>> wrote:<br>
><br>
> Yes it works, but IMHO it does not fix the issue. All strings<br>
> 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<br>
> codepage of<br>
> the strings.<br>
><br>
> After applying your fix I stumbled into another codepage issue<br>
> 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>
><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>
> > <<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
</span><span>> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>>><br>
> > 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" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>><br>
</span><span>> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>>>><br>
> > > wrote:<br>
> > ><br>
</span><div><div>> > > 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" target="_blank">chrissc.humbert@gmail.com</a> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>><br>
> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a><br>
> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>>><br>
> > <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>><br>
> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a><br>
> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>>>><br>
> > > <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>><br>
> > <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a>><br>
> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">chrissc.humbert@gmail.com</a><br>
> <mailto:<a href="mailto:chrissc.humbert@gmail.com" target="_blank">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" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>>> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a><br>
> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>><br>
</div></div>> > <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>>>> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>><br>
<div><div>> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>>> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>><br>
> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a> <tel:<a href="tel:8859-15" value="+352885915" target="_blank">8859-15</a>>>>><br>
> > > ><br>
> > > ><br>
> > > > That is working and the page is well encoded<br>
> 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" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>>><br>
> > > > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>>><br>
> > > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a>><br>
> > <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">olivier.hallot@libreoffice.org</a><br>
> <mailto:<a href="mailto:olivier.hallot@libreoffice.org" target="_blank">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<br>
> 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>
> _______________________________________________<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<br>
> hack it,<br>
> > but gave up<br>
> > > > with not a<br>
> > > > clue on where this get messed.<br>
> > > ><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>
> _______________________________________________<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>
><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>
</div></div><br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
</blockquote></div><br></div>