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

Unicode Woes & VB.NET

I have a VB.NET app that is made up of several fill-in-the-blank-type
forms that allows non-technical people convert articles, press
releases and publications into XML.

For publications created in Adobe PageMaker, and a lot of the data
entered is just cut from PageMaker and pasted into my app.

My problem is that PageMaker uses em-dashes, typographer's quotes (the
slanty quotes `` and ''), etc. and they remain as such when pasted
into my app.

I haven't had any problems converting ASCII char's to their XML
equivalents (using the Replace() function), but I haven't had much
luck with these extended chars.

I know VB.NET is unicode goodness, and I've looked up the unicode
values for the chars that need to be replaced, but I haven't had much
luck.

There are really two problems here.

The first is that the dashes, apostrophe's and typographer's quotes
appear normally when you paste them into my RichTextBox, but they
don't seem to make it back out.

The other problem is that I can't even get the dang things to print in
a message box. The following code just prints the empty box that
appears when Windows doesn't know what character to render.

Dim myChar As Char
myChar = ChrW(&H2036) 'Typographer's Open Quote
MsgBox("Character:" & myChar, MsgBoxStyle.Exclamation, "Char Result")

Someone suggested that I need to install the right language pack. If
these characters are not supported in my existing language/font packs,
why am I able to see them in my RichTextBox?

Can someone throw me a bone here? I've only coded two other VB.NET
apps, and need some help.

Thanks in advance!
Nov 20 '05 #1
3 1611
Nevermind, I'm an idiot. This program is a project I've been working
on in my spare time for the last two years. For some reason this
problem has stumped me until now. I did some reading up on
System.Text.Encoding and I brushed up on ANSI, ASCII, UTF-n, etc. and
I was able to get this figured out. I was going in completely the
wrong direction.
no****@yakhair.com (Stilgar[bbs.isca.uiowa.edu]) wrote in message news:<4d*************************@posting.google.c om>...
I have a VB.NET app that is made up of several fill-in-the-blank-type
forms that allows non-technical people convert articles, press
releases and publications into XML.

For publications created in Adobe PageMaker, and a lot of the data
entered is just cut from PageMaker and pasted into my app.

My problem is that PageMaker uses em-dashes, typographer's quotes (the
slanty quotes `` and ''), etc. and they remain as such when pasted
into my app.

I haven't had any problems converting ASCII char's to their XML
equivalents (using the Replace() function), but I haven't had much
luck with these extended chars.

I know VB.NET is unicode goodness, and I've looked up the unicode
values for the chars that need to be replaced, but I haven't had much
luck.

There are really two problems here.

The first is that the dashes, apostrophe's and typographer's quotes
appear normally when you paste them into my RichTextBox, but they
don't seem to make it back out.

The other problem is that I can't even get the dang things to print in
a message box. The following code just prints the empty box that
appears when Windows doesn't know what character to render.

Dim myChar As Char
myChar = ChrW(&H2036) 'Typographer's Open Quote
MsgBox("Character:" & myChar, MsgBoxStyle.Exclamation, "Char Result")

Someone suggested that I need to install the right language pack. If
these characters are not supported in my existing language/font packs,
why am I able to see them in my RichTextBox?

Can someone throw me a bone here? I've only coded two other VB.NET
apps, and need some help.

Thanks in advance!

Nov 20 '05 #2
Nevermind. I figured out my problem. I was going in completely the
wrong direction. I did some brushing up on ANSI, ASCII, and UTF-8/16,
plus some reading up on System.Text.Encoding and I was able to figure
out my problem.

It's one of those things that you go berzerk trying to figure out
what's going on and then you discover you are the problem.
Nov 20 '05 #3
Nevermind. I figured out my problem. I was going in completely the
wrong direction. I did some brushing up on ANSI, ASCII, and UTF-8/16,
plus some reading up on System.Text.Encoding and I was able to figure
out my problem.

It's one of those things that you go berzerk trying to figure out
what's going on and then you discover you are the problem.

no****@yakhair.com (Stilgar[bbs.isca.uiowa.edu]) wrote in message news:<4d*************************@posting.google.c om>...
I have a VB.NET app that is made up of several fill-in-the-blank-type
forms that allows non-technical people convert articles, press
releases and publications into XML.

For publications created in Adobe PageMaker, and a lot of the data
entered is just cut from PageMaker and pasted into my app.

My problem is that PageMaker uses em-dashes, typographer's quotes (the
slanty quotes `` and ''), etc. and they remain as such when pasted
into my app.

I haven't had any problems converting ASCII char's to their XML
equivalents (using the Replace() function), but I haven't had much
luck with these extended chars.

I know VB.NET is unicode goodness, and I've looked up the unicode
values for the chars that need to be replaced, but I haven't had much
luck.

There are really two problems here.

The first is that the dashes, apostrophe's and typographer's quotes
appear normally when you paste them into my RichTextBox, but they
don't seem to make it back out.

The other problem is that I can't even get the dang things to print in
a message box. The following code just prints the empty box that
appears when Windows doesn't know what character to render.

Dim myChar As Char
myChar = ChrW(&H2036) 'Typographer's Open Quote
MsgBox("Character:" & myChar, MsgBoxStyle.Exclamation, "Char Result")

Someone suggested that I need to install the right language pack. If
these characters are not supported in my existing language/font packs,
why am I able to see them in my RichTextBox?

Can someone throw me a bone here? I've only coded two other VB.NET
apps, and need some help.

Thanks in advance!

Nov 20 '05 #4

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

Similar topics

5
by: Edward K. Ream | last post by:
Am I reading pep 277 correctly? On Windows NT/XP, should filenames always be converted to Unicode using the mbcs encoding? For example, myFile = unicode(__file__, "mbcs", "strict") This...
27
by: EU citizen | last post by:
Do web pages have to be created in unicode in order to use UTF-8 encoding? If so, can anyone name a free application which I can use under Windows 98 to create web pages?
3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
4
by: webdev | last post by:
lo all, some of the questions i'll ask below have most certainly been discussed already, i just hope someone's kind enough to answer them again to help me out.. so i started a python 2.3...
1
by: André | last post by:
I'm attempting to override a wxHtmlWindow method in order to pre-process the file before displaying it. I'm using a unicode version of wxPython. I don't think my problem are wxPython-specific, but...
7
by: Robert | last post by:
Hello, I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem ..... to get unicode strings on the...
3
by: KvS | last post by:
Hi all, I've been reading about unicode in general and using it in Python in particular lately as this turns out to be not so straightforward actually. I wanted to aks two questions: 1) I'm...
4
by: Tom Fields | last post by:
Hello! I like to use the XmlTextWriter to write some SVG files. But in some cases, I need the '&' as '&' and not as &amp;. Example: <glyph unicode="&#x4c;"/> Some code-snippet:
3
by: RoxxorzIt | last post by:
Alright, all I'm trying to do at the moment is display who posted a topic from a page entirely separate from PHPBB. The problem is, it seems no matter what I do, I just can't find a way to do so. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.