Page 1 of 1

Strange characters in bullets

PostPosted: Tue Jan 17, 2017 9:16 pm
by areindal
Hi,

We have a batch program that creates docx documents from html code. We have been testing it in a Windows machine and it did work fine.

The problem we are facing is that when we run the program batch in a linux machine the bullets in the document appear with strange characters.

I sent you and example.

It seems to me it is an encoding problem, but i can´t find where to change or select the proper encodding.

We are using version 3.0 of the library.

Can you help me?

Thx in advance.

Re: Strange characters in bullets

PostPosted: Wed Jan 18, 2017 6:11 pm
by jason
Your numbering part contains:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  <w:abstractNum w:abstractNumId="1">
    <w:nsid w:val="4DC0125F"/>
    <w:multiLevelType w:val="multilevel"/>
    <w:tmpl w:val="3A065FFE"/>
    <w:lvl w:ilvl="0">
      <w:start w:val="1"/>
      <w:numFmt w:val="bullet"/>
      <w:lvlText w:val=""/>   <---------------------------- encoding problem
     <w:lvlJc w:val="left"/>
      <w:pPr>
        <w:ind w:left="960" w:hanging="360"/>
      </w:pPr>
      <w:rPr>
        <w:rFonts w:ascii="Symbol" w:hAnsi="Symbol" w:hint="default"/>
      </w:rPr>
    </w:lvl>
 
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


You'll need to create a simple test case, in which you input XHTML (basically just a list item), and output a docx exhibiting the issue. Similar to one of the samples at https://github.com/plutext/docx4j-Impor ... 4j/samples

Please advise output of Locale.getDefault().toString() on the Linux machine.