473,386 Members | 1,812 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,386 software developers and data experts.

Encoding question

RD
What encoding must I use in my XML file to show the french character set
correctly in the browser?

I'm extracing data from a SQl server 2000 table and placing it in XML files
using the dataset.writeXML command. That part of it works fine, but when the
data in te XML file contains french characters (éêèçà etc..) the output is
weird.

Secondly I want to put some captions in the XSL style sheet that controls
the output and there also these characters are not recognized and give an
error. What do you have to do to put foreign characters in captions
contained in the style sheet.

Thanks for your help,
Merry Christmas to all,
Bob
Nov 12 '05 #1
2 1672


RD wrote:
What encoding must I use in my XML file to show the french character set
correctly in the browser?
That depends on what character sets the XML parser of your browser
understands. XML parsers however are required to understand both UTF-8
and UTF-16 thus if you choose one of them the parser shouldn't have a
problem.
Secondly I want to put some captions in the XSL style sheet that controls
the output and there also these characters are not recognized and give an
error. What do you have to do to put foreign characters in captions
contained in the style sheet.


An XSL stylesheet usually transforms XML to HTML to render it in a
browser so if you for instance use
<xsl:output method="html" encoding="UTF-8" />
in that stylesheet then there shouldn't be a problem
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 12 '05 #2
RD
Thanks for the help,
I'm new to all this stuff, Windows forms seems so simple by comparison :-)

Bob
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...


RD wrote:
What encoding must I use in my XML file to show the french character set
correctly in the browser?


That depends on what character sets the XML parser of your browser
understands. XML parsers however are required to understand both UTF-8
and UTF-16 thus if you choose one of them the parser shouldn't have a
problem.
Secondly I want to put some captions in the XSL style sheet that controls the output and there also these characters are not recognized and give an error. What do you have to do to put foreign characters in captions
contained in the style sheet.


An XSL stylesheet usually transforms XML to HTML to render it in a
browser so if you for instance use
<xsl:output method="html" encoding="UTF-8" />
in that stylesheet then there shouldn't be a problem
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #3

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

Similar topics

2
by: Mark | last post by:
Sorry about the last... Anyway, here's the question: I've been working on some C# routines to process strings in and out of various encodings. The hope is that I can just let the user type in...
7
by: polarz | last post by:
I wrote a front end to a command line mp4 music tagger that reads my playlist files and gets info such as artist, title, album, etc, etc. I use the info to catalog, tag, sort, etc, my files. I've...
5
by: Waldy | last post by:
Hi there, how do you set the encoding format of an XML string? When I was outputting the XML to a file you can specify the encoding format like so: XmlTextWriter myWriter; myWriter = new...
4
by: Christina | last post by:
Hey Guys, Currently, I am using the below code: Dim oReqDoc as XmlDocument Dim requiredBytes As Byte() requiredBytes = System.Text.UTF8Encoding.UTF8.GetBytes(oReqDoc.InnerXml). Here, I am...
4
by: George | last post by:
Hi, I am puzzled by the following and seeking some assistance to help me understand what happened. I have very limited encoding knowledge. Our SAP system writes out a text file which includes...
4
by: Provost Zakharov | last post by:
Hello, I just needed some help on how the DOM is encoded by the IE parser. As per the MSDN page, http://msdn.microsoft.com/workshop/author/dhtml/reference/charsets/charset4.asp ,server encodings...
3
by: mortb | last post by:
1. How do I determine which encoding a xmldocument or xmlreader uses when opening a document? I'm not just talking about the <?xml encoding="utf-8"?attribute, but the actual encoding of the...
23
by: Allan Ebdrup | last post by:
I hava an ajax web application where i hvae problems with UTF-8 encoding oc chineese chars. My Ajax webapplication runs in a HTML page that is UTF-8 Encoded. I copy and paste some chineese chars...
1
by: ujjwaltrivedi | last post by:
Hey guys, Can anyone tell me how to create a text file with Unicode Encoding. In am using FileStream Finalfile = new FileStream("finalfile.txt", FileMode.Append, FileAccess.Write); ...
0
by: deloford | last post by:
Hi This is going to be a question for anyone who is an expert in C# Text Encoding. My situation is this: I have a Sybase database which is firing back ISO-8559 encoded strings. I am unable to...
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.