473,406 Members | 2,343 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,406 software developers and data experts.

Dealing with foreign characters?

Hi all,

I have an app that analyzes files based on their time stamp. However,
in the file names are often 'non-english' characters like letters with
accents and the spanish ñ. This causes my app to 'see' the filenames
wrong. For example, a file with the word 'español' in it is seen
first as 'espaol' and then later as espanol in my app.

Anyone know of a built-in way to deal with this characters? Is there a
way to strip accents and force VB to see an 'ñ' as an 'n' ? Or am I
going to have to do this the hard way and write a function than looks
for these characters?

Thanks

Dec 16 '05 #1
6 1856
"Hugh Janus" <my*************@hotmail.com> schrieb:
I have an app that analyzes files based on their time stamp. However,
in the file names are often 'non-english' characters like letters with
accents and the spanish ñ. This causes my app to 'see' the filenames
wrong.


How does your application "see" the file names?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 17 '05 #2
Hugh,

As far as I know uses Spanish the same code set as every western European
language.
(1252). However have a look at these pages.

Unicode
http://www.geocities.com/Athens/Acad.../fontset.htm#b

OS systems
http://www.microsoft.com/globaldev/r...ocversion.mspx

I hope this helps a little bit?

Cor
"Hugh Janus" <my*************@hotmail.com> schreef in bericht
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all,

I have an app that analyzes files based on their time stamp. However,
in the file names are often 'non-english' characters like letters with
accents and the spanish ñ. This causes my app to 'see' the filenames
wrong. For example, a file with the word 'español' in it is seen
first as 'espaol' and then later as espanol in my app.

Anyone know of a built-in way to deal with this characters? Is there a
way to strip accents and force VB to see an 'ñ' as an 'n' ? Or am I
going to have to do this the hard way and write a function than looks
for these characters?

Thanks
Dec 17 '05 #3
For example, a file with the word 'español' in it is seen first as
'espaol'.

Dec 17 '05 #4
"Hugh Janus" <my*************@hotmail.com> schrieb:
For example, a file with the word 'español' in it is seen first as
'espaol'.


Again: Where is the file seen? What are you doing with the file's name?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 17 '05 #5

Herfried K. Wagner [MVP] wrote:
"Hugh Janus" <my*************@hotmail.com> schrieb:
For example, a file with the word 'español' in it is seen first as
'espaol'.


Again: Where is the file seen? What are you doing with the file's name?


I use a directory walker to find all files. Then I do a simple
IO.File.Copy to copy the file elsewhere based on a criteria. I am not
doing anything with the files name.

Dec 19 '05 #6
For example, a file with the word 'español' in it is seen
first as 'espaol' and then later as espanol in my app.
You say the word is 'seen' twice. I think it would help to know what are the
two sets of VB code that see them?
"Hugh Janus" <my*************@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...

Herfried K. Wagner [MVP] wrote:
"Hugh Janus" <my*************@hotmail.com> schrieb:
For example, a file with the word 'español' in it is seen first as
'espaol'.


Again: Where is the file seen? What are you doing with the file's name?


I use a directory walker to find all files. Then I do a simple
IO.File.Copy to copy the file elsewhere based on a criteria. I am not
doing anything with the files name.
Dec 19 '05 #7

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

Similar topics

4
by: Toffe | last post by:
Hi, I've got a problem with regular expressions and strings containing Swedish characters (åäö). I basically have a PHP script that highlights certain words in a text. I found the code...
0
by: JJY | last post by:
Hi. I have an ASP page. In there, I retirieve some data (Korean characters for testing purpose) from the database and I tried to display it. If I set the session.codepage = 949, the foreign...
1
by: dalei | last post by:
I like to make foreign letters to appear in the textarea. For instance, when typing the letter 'a' on the keyboard, the Japanese letter &#+12449; would appear in the textarea. Could somebody...
13
by: Xah Lee | last post by:
the Journey of Foreign Characters thru Internet Xah Lee, 20051101 There's a bunch of confusions about the display of non-ascii characters such as the bullet "•". These confusions are...
2
by: Harley | last post by:
im working on an ASP.NET app in VB.NET and have problems with foreign characters. everything works ok, special characters are presented ok onscreen when typed in the body of the page, using html...
16
by: Hugh Janus | last post by:
Hi all, I posted a couple of weeks ago with what I thought was a problem with the file system reading accented characters however, after debugging line by line I have now found the true problem....
3
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I get an error on a .net 2.0 page when I use foreign characters, such as ç or ã. Setting validateRequest=false handles this, but is there a way to keep validateRequest=true but allow foreign...
3
by: MitchellEr | last post by:
I can't seem to get consistency in my application with foreign character handling. I'm creating a series of forms that update database tables. So, when trying to edit a form, the field values that...
5
by: Matt | last post by:
I originally posted this in microsoft.public.sqlserver.server, and it was suggested that I post here. I'm having problems with searches via a classic ASP front-end of terms including foreign...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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
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...

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.