+ Reply to Thread
Results 1 to 4 of 4

Importing CSV file in UTF8

  1. #1
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Question Importing CSV file in UTF8

    Hi all,

    I'm using the following VBA script to import a CSV file with a button. Works fine, but the problem is that the imported text contains a lot of weird characters and I believe it does not import in UTF8. I've tried for hours already, but just can't get it to work Hope someone can help. The source file is definitely UTF8 and displays correctly when I import it via the usual text import function and not via VBA.

    Please Login or Register  to view this content.
    Hop you can help!
    Many thanks,
    Mat

  2. #2
    Registered User
    Join Date
    02-06-2013
    Location
    Ezinge, The Netherlands
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    65

    Re: Importing CSV file in UTF8

    Hi Mat,

    Can you provide an (example) csv?

  3. #3
    Forum Contributor
    Join Date
    08-25-2015
    Location
    London
    MS-Off Ver
    MS 365
    Posts
    213

    Re: Importing CSV file in UTF8

    Hi thelongpants,

    I'm sorry, but I can't provide the CSV as it contains sensitive data.

    If I import the csv via the 'import text' function and choose "65001: Unicode (UTF-8)" as the file origin it works totally fine. Think I just need to add this bit somewhere in my code so the script knows which file origin to choose.

    Thanks for your help,
    Mat

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    Ezinge, The Netherlands
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    65

    Re: Importing CSV file in UTF8

    Hi kingofcamden,

    Unfortunately without a proper example I cannot help you.
    Please provide your excel sheet and csv.

    You can remove the sensitive data first, by replacing with dummy values.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] print text file with UTF8 encoding
    By dalerdd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2014, 11:14 AM
  2. Utf8 encoding
    By reikia2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2012, 03:05 PM
  3. Replies: 8
    Last Post: 06-16-2011, 11:49 AM
  4. Save UTF8 TXT without tabstop
    By Eich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2011, 07:34 AM
  5. Chinese characters - UTF8 CSV files
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2006, 11:15 AM
  6. [SOLVED] XML UTF8 header UTF16 Body
    By news.microsoft.com in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 10:05 AM
  7. [SOLVED] How can I transfer a Utf8 file from word to excel?
    By Shawn in forum Excel General
    Replies: 0
    Last Post: 05-20-2005, 10:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1