473,378 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

A Freakish Problem: with € and encodings

Hi All,

I have just spent 2 days tring to display euro sign in html which is
obtained from xml and xsl.
After you would not beleive what kind of research it came down to that
when I
load the page it shows it as € (the sqare thing) and when I
reload it
it as € (euro sign).

I will now have to get out of here, and collect myself, but my hope is
someone knows why this is happening.
I could send my XSL and XML but only if you want to bother.
Few notes though:
xml is generated dynamically, printed line by line.
if I output only plain xml to the browser it works for the first time.
So I think it is problem with xsl but...
anyway here is xsl :)
<?xml version="1.0" encoding="Windows-1252"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Ready Systems For Selling</h2>
<table border="0" >
<tr bgcolor="#FF1FFFCF">
<th align="left">Request Purchase Number</th>
<th align="left">Product Name</th>
<th align="left">Product Price</th>
</tr><BR/><BR/>
<xsl:for-each select="ENVELOPE/QUERY/DATA/ROW">
<tr bgcolor="#FF1F1FCF">
<td><xsl:value-of select="request_number"/></td>
<td><xsl:value-of
select="product_name"/></td> <td><xsl:value-of
select="price"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Anything will be greatly appriciated,

Thanks
Damjan
Jul 20 '05 #1
1 2543
Li*******@hotmail.com (Damjan) wrote:
Content-Type: text/plain; charset=ISO-8859-1
ISO-8859-1 has *NO* euro sign.
http://www.cs.tut.fi/~jkorpela/latin9.html
I have just spent 2 days tring to display euro sign in html
See http://www.cs.tut.fi/~jkorpela/html/euro.html how to do this.
The best method is to write &euro; .
After you would not beleive what kind of research it came down to that
when I
load the page it shows it as € (the sqare thing)
€ is undefined! The euro sign is € .
and when I reload it it as € (euro sign). ^
This is *NO* euro sign - it is character 128 = x80, which is a control
character in your chosen encoding ISO-8859-1.
<?xml version="1.0" encoding="Windows-1252"?>


Do *not* use Microsoft-proprietary, Windows-specific encodings.

--
Top posting.
What's the most irritating thing on Usenet?
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: alejandro david weil | last post by:
Hello! I got the next problem and didn't see any reference to the behaviour that produces it, look: If we have a module like: --- mod.py --------------->8------ testvar2 = 15
12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
6
by: Club-B42 | last post by:
i've compiled my programm using command "python setup.py py2exe >1" python script works fine, but .exe version fails with =====================================================================...
7
by: Jos van Uden | last post by:
Can somebody explain why the following file has the wrong output: <?xml version="1.0" encoding="iso-8859-1"?> <test> <elem>‘bla bla bla’</elem> </test> Expected: ‘bla bla bla’ output: ?bla...
1
by: Petr Prikryl | last post by:
I did observe the problem when using the -U option on Windows 2000. Seems like some infinite recursion in cp1250.py -- see below. I did not try it with earlier versions of Python. Can this...
1
by: kristian.hermansen | last post by:
keherman@ibmlnx20:/tmp$ cat helloworld.py #!/usr/bin/env python import pygtk pygtk.require('2.0')
2
by: gen_tricomi | last post by:
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal...
3
by: =?Utf-8?B?UmFnYQ==?= | last post by:
Hi, We have found a very freakish ‘truncate’ behavior in Classic ASP application (that is called from within a web logic portal). We have an ASP variable, lngOrderId (an oracle sequence...
2
by: jiang.haiyun | last post by:
Hi, I am having some serious problems with PyQT4, when i run pyqt script, I always get 'Segmentation fault'. the script is simple: ====================== %less qttest.py from PyQt4 import...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.