473,799 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 SorceXMLFilenam e as String
Dim ResultXMLfilena me as String
Dim XSLTfilename as String
Dim convXML As New XslTransform
Dim res As XmlResolver
convXML.Load(XS LTfilename )
convXML.Transfo rm(SorceFilenam e , ResultXMLfilena me , 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 1261
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!P LEASEtkachenko. com> wrote in message news:<ur******* *******@TK2MSFT NGP14.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
2521
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 ? Regards Philippe
2
4756
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 compillation error "array out of script", but returns whatever heppened to be written in that memory address (in particular it might return the correct values of those elements before re-dimentioning)? This seems to be the case in my code, yet I wanted to...
1
1513
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 an empty caracter but it doesn't work, my code is : Replace(Trim(element.value), chr(13),"") Do you have any idea to resolve my problem ? Thanks.
0
1179
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 System.Diagnostics.ProcessStartInfo
0
1345
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
33120
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 changed).
3
2068
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 "ñ" y para acceder al ";" hay que presionar SHIFT + ",". Quiero capturar el caracter final que se tiene que mostrar, hay alguna forma de hacerlo? Alguna funcion API? Gracias
5
6910
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 Preserve SomeArray(c) SomeArray(c) = SomeObject <end loop>
7
1853
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
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10214
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.