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

Reading data from unicode file

Hi all

I have CSV text file having unicode data in. When I am trying to insert that
data in Database using FSO it change the data.
When I copy and paste data in DB it looks ok.

set FSObj = server.CreateObject("Scripting.FileSystemObject")
Set myFile = FSObj.OpenTextFile(strFilePath,1, False,TristateTrue )

Please advise.

Kind Regards,
Jul 22 '05 #1
2 1181
are you defining TristateTrue somewhere?

put "option explicit" at the top of your code as in:

<%@ Language=VBScript %>
<%
option explicit
--
Mark Schupp

"FaYYaZ" <ne**@microsoft.com> wrote in message
news:Om**************@TK2MSFTNGP14.phx.gbl...
Hi all

I have CSV text file having unicode data in. When I am trying to insert that data in Database using FSO it change the data.
When I copy and paste data in DB it looks ok.

set FSObj = server.CreateObject("Scripting.FileSystemObject")
Set myFile = FSObj.OpenTextFile(strFilePath,1, False,TristateTrue )

Please advise.

Kind Regards,

Jul 22 '05 #2
Thanks for your reply, I do have these things defined on top.
"Mark Schupp" <no****@nospam.com> wrote in message
news:eG*************@TK2MSFTNGP15.phx.gbl...
are you defining TristateTrue somewhere?

put "option explicit" at the top of your code as in:

<%@ Language=VBScript %>
<%
option explicit
--
Mark Schupp

"FaYYaZ" <ne**@microsoft.com> wrote in message
news:Om**************@TK2MSFTNGP14.phx.gbl...
Hi all

I have CSV text file having unicode data in. When I am trying to insert

that
data in Database using FSO it change the data.
When I copy and paste data in DB it looks ok.

set FSObj = server.CreateObject("Scripting.FileSystemObject")
Set myFile = FSObj.OpenTextFile(strFilePath,1, False,TristateTrue )

Please advise.

Kind Regards,


Jul 22 '05 #3

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

Similar topics

8
by: Nick | last post by:
Hi ! I want to load an old Pascal-Dos-File where records stand in. When i view the file in a HEX-Editor it's clear how to acces these Strings and chars in that file. Since these are old 8BIT...
2
by: Jessard | last post by:
Hi all, I am having trouble reading an XML document in and looping through it's nodes in VB.NET. The error is specific, it is: "There is no Unicode byte order mark. Cannot switch to Unicode."...
5
by: Jamie | last post by:
I have a file that was written using Java and the file has unicode strings. What is the best way to deal with these in C? The file definition reads: Data Field Description CHAR File...
3
by: Sivaraj G via .NET 247 | last post by:
We created a unicode file using java application. It usesmethods like writeUTF(), writeInt() of java.io.DataOutputStreamclass to write the content of the file. We are able to read datausing...
5
by: rnorthedge | last post by:
I am working on a code library which needs to read in the data from large binary files. The files hold int, double and string data. This is the code for reading in the strings: protected...
7
by: Drew Berkemeyer | last post by:
Hello, I'm using the following code to read a text file in VB.NET. Dim sr As StreamReader = File.OpenText(strFilePath) Dim input As String = sr.ReadLine() While Not input Is Nothing...
2
by: James Wong | last post by:
Dear all, I'm using StreamReader to read a text file containing BIG-5 data and found that no matter which encoding method in StreamReader's construction parameter, the BIG-5 contents become...
3
by: al jones | last post by:
I’m using textfieldparser to read a data file. which contains, for example: Amondó Szegi Amondo Szegi andré nossek André Nossek © Characte Character Note the vowels with diacriticals...
11
by: Freddy Coal | last post by:
Hi, I'm trying to read a binary file of 2411 Bytes, I would like load all the file in a String. I make this function for make that: '-------------------------- Public Shared Function...
1
by: Nebulism | last post by:
Hi everyone, I have been working with Python since this summer and I used to frequent this board for advice and tips. Well...I'm back! Anywho, I am reading in a file that is around 70 megs. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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?
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
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...

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.