Bad characters in help in French

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bad characters in help in French

Jacques Le Roux
Administrator
When looking at this page in French
https://demo-trunk.ofbiz.apache.org/catalog/control/showHelp?helpTopic=navigateHelp
I see bad characters, after googling for "accent in docbook" I have tried many ways but none works. Anybody an idea?

Thanks

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: Bad characters in help in French

Jacques Le Roux
Administrator
OK using <?xml version="1.0" encoding="iso-8859-1"?> works, I can't find a simpler way

Jacques

From: "Jacques Le Roux" <[hidden email]>
> When looking at this page in French
> https://demo-trunk.ofbiz.apache.org/catalog/control/showHelp?helpTopic=navigateHelp
> I see bad characters, after googling for "accent in docbook" I have tried many ways but none works. Anybody an idea?
>
> Thanks
>
> Jacques
>

Reply | Threaded
Open this post in threaded view
|

Re: Bad characters in help in French

Scott Gray-2
Hi Jacques,

Are you sure the characters in the source file were actually encoded correctly for UTF-8?  I can't imagine docbook affecting the characters since all it does is perform XSL transformations.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 29/08/2010, at 10:50 PM, Jacques Le Roux wrote:

> OK using <?xml version="1.0" encoding="iso-8859-1"?> works, I can't find a simpler way
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> When looking at this page in French
>> https://demo-trunk.ofbiz.apache.org/catalog/control/showHelp?helpTopic=navigateHelp
>> I see bad characters, after googling for "accent in docbook" I have tried many ways but none works. Anybody an idea?
>> Thanks
>> Jacques
>>
>


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bad characters in help in French

Jacques Le Roux
Administrator
Hi Scott,

Yes, it's simple text encoded in UTF-8. I also tried with BOM and I don't want to spend too much time on this. If I simply replace
iso-8859-1 by UTF-8 then the bad characters come back again, without any other changes.
It maybe due how the pages are rendered in OFBiz?

Jacques

Scott Gray wrote:

> Hi Jacques,
>
> Are you sure the characters in the source file were actually encoded correctly for UTF-8?  I can't imagine docbook affecting the
> characters since all it does is perform XSL transformations.
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 29/08/2010, at 10:50 PM, Jacques Le Roux wrote:
>
>> OK using <?xml version="1.0" encoding="iso-8859-1"?> works, I can't find a simpler way
>>
>> Jacques
>>
>> From: "Jacques Le Roux" <[hidden email]>
>>> When looking at this page in French
>>> https://demo-trunk.ofbiz.apache.org/catalog/control/showHelp?helpTopic=navigateHelp
>>> I see bad characters, after googling for "accent in docbook" I have tried many ways but none works. Anybody an idea?
>>> Thanks
>>> Jacques


Reply | Threaded
Open this post in threaded view
|

Re: Bad characters in help in French

Jacques Le Roux
Administrator
Mmm, it's no clear. When I updated another instance the file was not UTF8-encoded but has "code page property" (at least that's what
says Scite).
I tried to encode it again in UTF-8, noways...
But one thing is sure, "code page property" works...

Jacques
PS: Also at some point I got this error, sorry going to sleep ;o)
---- exception report ----------------------------------------------------------
Error rendering included content with id [HELP_ROOT] : org.ofbiz.base.util.GeneralException: Content is not allowed in prolog.
Exception: org.ofbiz.base.util.GeneralException
Message: Content is not allowed in prolog.
---- stack trace ---------------------------------------------------------------
org.ofbiz.base.util.GeneralException: Content is not allowed in prolog.
org.ofbiz.content.content.ContentWorker.renderContentAsText(ContentWorker.java:299)
org.ofbiz.content.content.ContentWorker.renderContentAsText(ContentWorker.java:330)
org.ofbiz.content.content.ContentWorker.renderContentAsText(ContentWorker.java:323)
org.ofbiz.content.content.ContentWorker.renderContentAsTextExt(ContentWorker.java:104)
org.ofbiz.widget.screen.MacroScreenRenderer.renderContentBody(MacroScreenRenderer.java:378)
org.ofbiz.widget.screen.ModelScreenWidget$Content.renderWidgetString(ModelScreenWidget.java:1155)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:257)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:257)
org.ofbiz.widget.screen.MacroScreenRenderer.renderScreenletSubWidget(MacroScreenRenderer.java:649)
org.ofbiz.widget.screen.ModelScreenWidget$Screenlet.renderWidgetString(ModelScreenWidget.java:370)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:670)
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:126)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:703)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:257)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:257)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:257)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:835)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:555)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:619)
--------------------------------------------------------------------------------

From: "Jacques Le Roux" <[hidden email]>
To: <[hidden email]>
Sent: Sunday, August 29, 2010 11:59 PM
Subject: Re: Bad characters in help in French


> Hi Scott,
>
> Yes, it's simple text encoded in UTF-8. I also tried with BOM and I don't want to spend too much time on this. If I simply replace
> iso-8859-1 by UTF-8 then the bad characters come back again, without any other changes.
> It maybe due how the pages are rendered in OFBiz?
>
> Jacques
>
> Scott Gray wrote:
>> Hi Jacques,
>>
>> Are you sure the characters in the source file were actually encoded correctly for UTF-8?  I can't imagine docbook affecting the
>> characters since all it does is perform XSL transformations.
>>
>> Regards
>> Scott
>>
>> HotWax Media
>> http://www.hotwaxmedia.com
>>
>> On 29/08/2010, at 10:50 PM, Jacques Le Roux wrote:
>>
>>> OK using <?xml version="1.0" encoding="iso-8859-1"?> works, I can't find a simpler way
>>>
>>> Jacques
>>>
>>> From: "Jacques Le Roux" <[hidden email]>
>>>> When looking at this page in French
>>>> https://demo-trunk.ofbiz.apache.org/catalog/control/showHelp?helpTopic=navigateHelp
>>>> I see bad characters, after googling for "accent in docbook" I have tried many ways but none works. Anybody an idea?
>>>> Thanks
>>>> Jacques
>
>