+ Reply to Thread
Results 1 to 3 of 3

Function to convert UTF16 or binary to UTF-8

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Function to convert UTF16 or binary to UTF-8

    Hi guys,

    I've been looking around for a while, but I can't seem to find any functions that convert binary code or UTF-16 to UTF-8?

    For example, I'm looking to convert "725B" (UTF-16) into "E7 89 9B" (UTF-8) equivalent.
    If it's easier to change decimal or binary to UTF-8, that would work too, but I can't seem to get anywhere...


    Thanks for any pointers.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Function to convert UTF16 or binary to UTF-8

    Perhaps this link? See second post.

    http://www.pcreview.co.uk/forums/con...-t3825432.html

    Alf

  3. #3
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Function to convert UTF16 or binary to UTF-8

    Hi Alf,

    thanks for trying to think along - I've found that post as well, but it involves using Word next to Excel.
    Apart from that, I found numerous posts which suggest I do it with an ADOdb stream, which I then write to a CSV file.
    Would be fine, but I want to prevent writing and opening files - so was looking for an easier way.
    I tried to write a stream and then read that stream to a variant, but no luck so far.

    I really didn't think it'd be that hard to convert binary/decimal or UTF-16 into UTF-8 ... figured there'd be some 'recode formula', but so far - no luck.
    I'll keep digging though, but if anyone would have a suggestion on how to do it with some code.

    Ideally if someone can help me understand how to write a 'recoder' as on http://scripts.sil.org/cms/scripts/p...=iws-appendixa

    Or on how to make the following code work without writing the file:

    Please Login or Register  to view this content.
    so I basically will want to read the binarystream into a variant or string - but no clue how.
    Anyone?

+ 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. Convert Hex to Binary formula
    By EddieK in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 02:35 PM
  2. Convert word to binary
    By elbertvillarreal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2010, 06:09 PM
  3. [SOLVED] Convert Binary to Hex
    By Chipmunk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-30-2009, 06:02 AM
  4. [SOLVED] Convert SpreadsheetML to binary .xls
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2006, 01:50 PM
  5. [SOLVED] How do I convert cell contents that are Hex to binary?
    By KarenSue33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2005, 02:06 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