+ Reply to Thread
Results 1 to 6 of 6

Removing special Characters.

  1. #1
    Registered User
    Join Date
    01-25-2009
    Location
    Florida, USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Removing special Characters.

    In my workbook, a sheet containing text/numerical information is exported as .txt files, using the code below.
    The blank row in between each grouping is the separator.

    ie: The example below would give me 3 txt files with the Title as the file name.

    Title_01_001
    This is text?
    This is more, text.

    Title_01_002
    This, is text.
    This is more text.
    Additional text?

    Title_01_003
    This is more text.


    The code below works fine, until I encounter these dreaded hidden characters from my original CSV file which i import into my worksheet, re order, then export as .txt
    Regardless of the format i save the CSV,, UTF-8, or Comma delimited, I cant get rid of them upon re import.

    These are a sample of the the special characters i encounter:

    You don’t want to hear it? ( the apostrophe in the word "don't" is actually hidden in my workbook)
    You don�t want to hear it?

    How can I get rid of these? I've tried using =CLEAN(A1), along with various other work around. but it removes the "?" (question marks) along with other characters in my document.

    Or better yet, is it possible to modify the code below to not error when it encounters them?
    I just uploaded a simple file, if this will help.

    Thanks for any help on this.
    Jeff



    HTML Code: 
    Attached Files Attached Files
    Last edited by jeff p; 05-20-2020 at 03:03 AM.

  2. #2
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,175

    Re: Removing special Characters.

    How do you import the csv file?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Removing special Characters.

    Try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-25-2009
    Location
    Florida, USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Removing special Characters.

    Thanks, Jindon
    .. but doesn't seem to work.



    Thanks, ByteMarks

    Here's how I'm importing the file.
    Unicode (UTF-8). using comma as the delimiter

    HTML Code: 

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Removing special Characters.

    Quote Originally Posted by jeff p View Post
    Thanks, Jindon
    .. but doesn't seem to work.
    Working here...
    Here's a sample to import UTF-8, so see if this outputs correctly...
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-25-2009
    Location
    Florida, USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Removing special Characters.

    Thanks for the help, Jindon.

    Tried to import the file, The special characters are now gone, .. but the delimiter separation isn't accurate.

    ...Either way, Ive solved my own problem.
    The special characters were created by the initial CSV export.
    Once that was corrected, everything seems to be working well.

    Thanks again..
    Jeff

+ 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] Auto Removing Special Characters
    By pauldaddyadams in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-04-2018, 05:30 AM
  2. Removing non numeric and special characters
    By katu in forum Excel General
    Replies: 6
    Last Post: 09-18-2015, 10:53 AM
  3. Removing special characters from time format
    By ajithkumar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-13-2014, 05:11 AM
  4. Removing special characters
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2014, 12:53 AM
  5. [SOLVED] VBA removing special characters
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-21-2014, 11:55 AM
  6. [SOLVED] Formula for removing special characters.
    By alexgempesaw in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-15-2013, 01:31 AM
  7. Removing special characters in a text cell
    By Darrell in forum Excel General
    Replies: 0
    Last Post: 03-30-2005, 08:50 PM

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