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

Preserve caracter entityes

Hi
I have a problem preserving caracter entities using XslTransform
object
in VB.net.

If I use saxon or even dot.net in Stylus studio for convertion, there
is no problem.

The problem is that when I convert using XSLT (I use
encoding="iso-8859-1")
the caracter entities that are higher than 255 is convetted to a
caracter and it become the wrong caracter since the encoding is a 8
bit type. (iso-8859-1)

Here is an exampel of the problem:
The entity: č converts to a caracter "c" and not [c caron]

I want to preserve č and not convert it.

I write this code for converting in dot.net:

Dim SorceXMLFilename as String
Dim ResultXMLfilename as String
Dim XSLTfilename as String
Dim convXML As New XslTransform
Dim res As XmlResolver
convXML.Load(XSLTfilename )
convXML.Transform(SorceFilename , ResultXMLfilename , res)

Is ther somthing i have to do here, so my entityes wil be preserved,
and not converted.

Greatful for any hints here.

Regards
Vidar Martinsen
Nov 12 '05 #1
2 1242
Vidar wrote:
I have a problem preserving caracter entities using XslTransform
object
in VB.net.

If I use saxon or even dot.net in Stylus studio for convertion, there
is no problem.

The problem is that when I convert using XSLT (I use
encoding="iso-8859-1")
the caracter entities that are higher than 255 is convetted to a
caracter and it become the wrong caracter since the encoding is a 8
bit type. (iso-8859-1)


..NET doesn't support that. What's wrong with UTF-8?
Take a look at for http://www.tkachenko.com/blog/archives/000266.html a
workaround.

--
Oleg Tkachenko [XML MVP, MCP]
http://blog.tkachenko.com
Nov 12 '05 #2
"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message news:<ur**************@TK2MSFTNGP14.phx.gbl>...

.NET doesn't support that. What's wrong with UTF-8?
Take a look at for http://www.tkachenko.com/blog/archives/000266.html a
workaround.


Thanks a lot for your answer.
The content of your link was helpful.

Its nothing wrong with UTF-8, its the rest of the world that have a problem. :-)
The problem is that my aplication shal deliver XML to an other aplication who do
not suport XML by 100% It must have the caracter entityes for caracters
beyond 255.

Regards
Vidar Martinsen
Nov 12 '05 #3

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

Similar topics

1
by: pcouas | last post by:
Hi, How can i pass an Unicode caracter \u015 from my JSP to my applet PARAM without alter it ? Currentlt this caracter is store in an Resource file, ans when i calling JSP page it is changed ?...
2
by: | last post by:
Is it correct to think that after reducing the populated array's size from say, 10 to 5 with redim preserve myArray(i) an attempt to access an element above the fifth does not cause a...
1
by: Séverine Donnay | last post by:
Hi, I make a csv file with values from data base fields . If my value contains a carriage return caracter at the end, a new line is created in my csv file. I tried to replace chr(13) caracter by...
0
by: Rui Abreu | last post by:
hi i have a problem in visual basic .net 2003. I have a app that executes processes, the code is ---- Private Shared Function docmd(ByVal arg As String) As String Dim psi As New...
0
by: Jan Keller | last post by:
Hello all, I am using an XmlTextReader and a DataSet to populate a DataGrid: ds = New DataSet xr = New XmlTextReader(path) ds.ReadXml(xr) xr.Close() dv = New DataView(ds.Tables.Item(0))
6
by: John Grandy | last post by:
Does C# have an equivalent for VB.NET's Redim Preserve ? ReDim Preserve increases the final dimension of any array while preserving the array's contents (however, the type of the array may not be...
3
by: David | last post by:
Hola, Estoy construyendo un keylogger que usa globalhook (con apis), el problema es que no todos los teclados son iguales, por ejemplo los de alfabetizacion española en lugar de ";" tienen la "ñ"...
5
by: Paul | last post by:
Off the cuff, does anyone know if arraylist is more efficeint at adding items to an array than redim preserve? Paul <begin loop> Dim c As Integer = SomeArray.GetUpperBound(0) + 1 ReDim...
7
by: AA Arens | last post by:
I want to fill in data in the fields and the first caracter is now automatic capitalized, however, I do not want this as abbiviations must be fully in capitals. How to get it? Bart Acc 2003.
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.