Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Go Back  Xtreme Visual Basic Talk > > > Reading a not UTF-8 encoding file


Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2004, 10:00 PM
leticia2602 leticia2602 is offline
Newcomer
 
Join Date: Jan 2004
Posts: 2
Default Reading a not UTF-8 encoding file


Hi,

I try to read a file that have 8 bit character, but contain some character
whose code is more than 128 (spanish character).

When I read this file using ASCII (Dim oRead As StreamReader = New
StreamReader("C:\...\name.txt", System.Text.Encoding.ASCII)), this special characters aren't appear.

If I try red this file with some unicode like UTF-8(the defualt encodign for the OpenText() ) of course that didn't work, because of this character don't have 16 bit.
I'm not an expert of unicode matter.

Can someone help me reading this type of file for show his content in web page.

Thank
Reply With Quote
  #2  
Old 01-23-2004, 06:51 AM
Iceplug's Avatar
IceplugReading a not UTF-8 encoding file Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

Try using the System.Text.Encoding.Default to read the other ASCII letters.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #3  
Old 01-23-2004, 06:59 AM
leticia2602 leticia2602 is offline
Newcomer
 
Join Date: Jan 2004
Posts: 2
Default that don't solve the problem

Quote:
Originally Posted by Iceplug
Try using the System.Text.Encoding.Default to read the other ASCII letters.



the System.Text.Encoding.Default don't works
i'm solve the problem using System.Text.Encoding.UTF7

thanks, and regards

Leticia Larrosa
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File I/O GavinO Tutors' Corner 5 04-17-2013 01:18 PM
Installation Problem - PLs help urgenlty dpdsouza Installation / Documentation 4 12-02-2004 07:09 PM
Doesn't want to register! MikeyM Installation / Documentation 5 03-02-2003 08:22 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
 
Reading a not UTF-8 encoding file
Reading a not UTF-8 encoding file
 
-->