+ Reply to Thread
Results 1 to 13 of 13

VBA to mass replace UNICODE symbols to valid values

  1. #1
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Lightbulb VBA to mass replace UNICODE symbols to valid values

    Hi guys,

    I've got complex problem that i cant handle alone, I've got pull from system including UNICODE symbols which not represent value that i need. I've got 2 files i need to compare statements but in one of them appears strange symbols like :
    <sup>1</sup>Marktf&uuml;hrer in &Ouml;sterreich (Gastro Data GmbH &Ouml;sterreich, Schoko-Dessertsaucen, Umsatz, 2020)

    insead of

    1Marktführer in Österreich (Gastro Data GmbH Österreich, Schoko-Dessertsaucen, Umsatz, 2020)

    or
    Oppbevares ved -18 &deg;C eller kaldere. Oppbevares p&aring; kj&oslash;l etter opptining og brukes innen 3 dager. M&aring; ikke fryses igjen etter opptining. Skal oppvarmes inntil rykende varm.

    instead of

    Oppbevares ved -18 °C eller kaldere. Oppbevares på kjøl etter opptining og brukes innen 3 dager. Må ikke fryses igjen etter opptining. Skal oppvarmes inntil rykende varm.


    Technically this is the same but i cannot compare it cuz its shown difference.
    I've got statements in 30 different languages so there is like 13k combination of strange digits
    Is there any way to solve it to replace all UNICODE / HTML into valid one.

    I will be grateful for your help
    Attached Files Attached Files
    Last edited by Vixx1; 08-28-2020 at 07:09 AM. Reason: damaged attachment

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    hmmmm....I don't think so. that seems VERY strange. It looks like what has happened here is that you got all the web information from a source that was reading the web code and it turned into obviously what you already know. ampersands resulted from ;gf, or whatever servers read. it's similar to that if you look at it in a dev IDE tool.

    for some reason I can't open ur file with 2016.

  3. #3
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: VBA to mass replace UNICODE symbols to valid values

    Don't know why u cannot open it ;/ So there is no way to replace strange symbols ? or to compare with rows in 2nd table?

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    of course you can replace them! the question IS....do you have a pattern matching matrix/database to compare the messed up entries with? if you did, the solution would be very simple. so for instance, something like this to reference:

    https://www.rapidtables.com/code/tex...haracters.html

  5. #5
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: VBA to mass replace UNICODE symbols to valid values

    I dont have any pattern to fix it, could You guide me how to do it? ( Like step by step)

  6. #6
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    well, without being able to open your file, I can't really do much! and I will not give step by step instructions. that goes against my belief that people can learn anything if they give effort when receiving guidance from me.

    can you copy one of your worksheets to an ms word document, and post it up here? literally select all the data, copy it to the clipboard and paste it into word. the result will be a word table.

  7. #7
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: VBA to mass replace UNICODE symbols to valid values

    Ok i understand. File is attached in word file. Take a look You can open it. I'll try to do it of course just help me a bit

  8. #8
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    there is no file attached.

  9. #9
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    < edit >
    ahhhh, I see it. stupid me! I'll get back to you if no one else jumps in to assist.

  10. #10
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: VBA to mass replace UNICODE symbols to valid values

    Thanks a lot, i will look forward your reply

  11. #11
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    can you answer the question in this image?
    Attached Images Attached Images

  12. #12
    Registered User
    Join Date
    08-14-2019
    Location
    Netherlands
    MS-Off Ver
    2019
    Posts
    36

    Re: VBA to mass replace UNICODE symbols to valid values

    Of course, sorry my mistake, yes there is one &oacute~ that is problem. Rest is fine

  13. #13
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: VBA to mass replace UNICODE symbols to valid values

    Quote Originally Posted by Vixx1 View Post
    Of course, sorry my mistake, yes there is one ó~ that is problem. Rest is fine
    no, there is not that string. it is technically:
    Please Login or Register  to view this content.
    so....with that being said, I have no idea how those symbols got in there for you, but they are NOT unicode. so...as far as I can tell, you're going to have to identify each one, one at a time and then put the in a list to reference. because obviously there is no table on any webpage that lists junk like that. sorry.

+ 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] Emoji Unicode VBA replace code with icon in cells
    By asitiz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-15-2018, 08:48 AM
  2. Macro for search and replace dash - unicode character not recognised
    By martin.wirenstrand in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2016, 05:06 AM
  3. Best way to find/replace Unicode characters
    By greek in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 05:39 PM
  4. [SOLVED] Find and replace special characters (unicode)
    By joevan1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2013, 06:05 AM
  5. Mass Replace Anywhere
    By tacobelldog52 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2011, 01:04 PM
  6. Counting BlackCircle Unicode Symbols
    By scotfitz in forum Excel General
    Replies: 2
    Last Post: 02-18-2009, 12:05 PM
  7. Unicode and Search and Replace
    By Rebecca in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-30-2005, 02:05 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