Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
This is the forum to discuss the Wrox book Beginning XML, 4th Edition by David Hunter, Jeff Rafter, Joe Fawcett, Eric van der Vlist, Danny Ayers, Jon Duckett, Andrew Watt, Linda McKinnon; ISBN: 9780470114872
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 28th, 2009, 01:53 PM
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default Page 22 XML in French

I may be missing something simple, but when I try to create French tags with accents (as in the book) IE gives me the below error message. Perhaps it is a simple issue that my setting are English, not French; or is it that IE when rendering XML can not deal with chars outside basic ASCII?
Quote:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
An invalid character was found in text content. Error processing resource 'file:///C:/Documents and Settings/WNAZ/Desktop/f...
<identit
  #2 (permalink)  
Old January 28th, 2009, 02:01 PM
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I withdraw the question. I should have checked Appendix A first, though since there is no discussion of encoding in the chapter, I don't feel completely stupid, just a little.
  #3 (permalink)  
Old January 28th, 2009, 02:02 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It can cope as long as the encoding declaration is the same as the actual one. For instance try:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
at the top. Then open the file in Notepad, and save it making sure the encoding dropdown is set to UTF-8.

If this fixes the problem but your file is normally created programatically then we'll need to see how you create to see where the encoding is incorrcetly applied.
__________________
Joe
http://joe.fawcett.name/
  #4 (permalink)  
Old January 28th, 2009, 02:16 PM
Registered User
 
Join Date: Jan 2009
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I've never worked with file encoding before, so this was new to me. Thanks for the quick response.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
French Characters in XML mansharma_s XML 5 February 9th, 2007 06:38 AM
English to French prabhakaran SQL Server 2000 3 December 5th, 2006 02:49 PM
Highlighted code; Page 1113, Ch 22 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 August 4th, 2006 10:13 AM
French Accents Bob Bedell C# 1 February 15th, 2006 11:23 PM
french date format djenandji XSLT 1 January 23rd, 2006 12:41 PM



All times are GMT -4. The time now is 06:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.