xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Georg Datterl" <georg.datt...@geneon.de>
Subject AW: AW: AW: Zero width space is displayed as junk character [â€] in PDF
Date Fri, 06 Nov 2009 13:54:11 GMT
Well, I don't use Eclipse with fop, but if you write the file with UTF-8 encoding and then
it's wrong in Eclipse, I guess it's a different problem. Well, it was worth a try, I guess.
Sorry I can't help more. 

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: sudhir543-dev@yahoo.com [mailto:sudhir543-dev@yahoo.com] 
Gesendet: Freitag, 6. November 2009 14:39
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: AW: Zero width space is displayed as junk character [â€] in PDF

Still I don't understand... 

How do I do this.. I use eclipse for reading and writing and every thing.. I have edit plus
too and I tried by setting file encoding in preference.. 

Thanks
SN

 
  
  



Personally I'm always ready to learn, although I do not always like being taught

  


________________________________

From: Georg Datterl <georg.datterl@geneon.de>
To: fop-users@xmlgraphics.apache.org
Sent: Fri, 6 November, 2009 6:52:49 PM
Subject: AW: AW: Zero width space is displayed as junk character [â€] in PDF

Hi SN, 

Nope, what I meant is: Reading and writing has to happen with the same encoding. You could
use UTF-8 for both or some ISO-Latin for both, but not write with one and read with another.


Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: sudhir543-dev@yahoo.com [mailto:sudhir543-dev@yahoo.com]
Gesendet: Freitag, 6. November 2009 14:18
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: Zero width space is displayed as junk character [â€] in PDF

Files is saved with UTF-8 .. that doesnt solve problem.. a And why would I need UTF-8 to store
"&#x200B;" other encoding would also handle it correctly.. I have no special characters
in my xsl that may need UTF-8.
Any way.. it does not work with UTF-8 too

Thanks
SN


  
  

Personally I'm always ready to learn, although I do not always like being taught

  


________________________________

From: Georg Datterl <georg.datterl@geneon.de>
To: fop-users@xmlgraphics.apache.org
Sent: Fri, 6 November, 2009 4:04:35 PM
Subject: AW: Zero width space is displayed as junk character [â€] in PDF

Hi SN, 

That's most likely an encoding problem. I have seen a similar effect with the latest trunk,
if I open the fo file in XMLSpy. Have a look at your application and make sure it saves the
fo file with the same encoding you use for reading. Preferably UTF-8, I guess.

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: sudhir543-dev@yahoo.com [mailto:sudhir543-dev@yahoo.com]
Gesendet: Freitag, 6. November 2009 11:29
An: fop-users@xmlgraphics.apache.org
Betreff: Zero width space is displayed as junk character [â€] in PDF

I am using fop 0.20.4.. I need to wrap content inside a block so I am adding zero width spaces
(&#x200B; ) to the long string.. how ever Instead of breaking at zero width space.. it
displays &#x200B; as a special character (â€) in PDF.. 

Here's my xsl code that adds zero width spaces as required


<xsl:template name="hyphenate">
    <xsl:param name="data" />
    <xsl:param name="limit" select="'10'"/>    
    <xsl:choose>
        <xsl:when test="string-length($data) &lt; $limit">
            <xsl:value-of  select="$data"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:variable name="part" select="substring($data, 1, $limit)"/>
            <xsl:variable name="remaining" select="substring($data, $limit+1)"/>
            <xsl:value-of select='concat($part, "&#x200B;")'/>    
            <xsl:call-template name="hyphenate">
                <xsl:with-param name="data" select="$remaining"/>
                <xsl:with-param name="limit" select="$limit"/>
            </xsl:call-template>                            
        </xsl:otherwise>
    </xsl:choose>    
</xsl:template>  
  

Any ideas why is it happening ?

Thanks
SN



Personally I'm always ready to learn, although I do not always like being taught

  


________________________________

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage <http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/>
.


________________________________

Try the new Yahoo! India Homepage. Click here <http://in.rd.yahoo.com/tagline_metro_1/*http://in.yahoo.com/trynew>
.


________________________________

From cricket scores to your friends. Try the Yahoo! India Homepage! <http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew>

Mime
View raw message