Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / March 2008

Tip: Looking for answers? Try searching our database.

Extended characters in XML to fix Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Harel - 16 Mar 2008 14:23 GMT
I have an Access DB, containing car and engine specifications entered
by hand by jobbers. I use an XML file to parse the information in the
specifications. Sometime they used "extended" characters to specify
dimension or range:

Ex: 1/4  instead of 1/4
Ex: - instead of  -
...etc

I need to detect and replace these characters with their ASCII
equivalent but I could not get these characters in my XML when in
UTF-8, the document loader throws and exception.  How can I get these
characters in my XML ?

I am using Regex to parse and replace fragments of the jobber
description. Basicaly I need to express these characters in my Pattern
element:

 <JobberNote  Pattern="(14 INCHE ' WHEEL SOLID ROTOR)$"
Replace="$1"          />

Thanks.
Martin Honnen - 16 Mar 2008 14:42 GMT
> I have an Access DB, containing car and engine specifications entered
> by hand by jobbers. I use an XML file to parse the information in the
[quoted text clipped - 9 lines]
> UTF-8, the document loader throws and exception.  How can I get these
> characters in my XML ?

I don't understand, XML is based on and fully supports Unicode so why do
you want to use ASCII?
If you have e.g.
<foo>¼</foo>
then that is well-formed XML

Just make sure the XML file is properly UTF-8 encoded, you can achieve
that using XmlWriter.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/

Harel - 21 Mar 2008 14:21 GMT
> don't understand, XML is based on and fully supports Unicode so why do
> you want to use ASCII?

Right. I changed the XML document encoding type with Crimsom editor to
UTF-8.
Works now.
Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.