CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005

    UTF-8 To Base-64

    I'm trying to convert a xml to byte array using ADO Stream object
    and after that convert it to Base-64 using Chilkat to build a json request

    The problem is the next:
    ---The original xml has: <?xml version="1.0" encoding="utf-8" ?>
    When I convert the byte array back to UTF-8 to check the conversion, I get only
    <?xml version="1.0" ?>
    the same occurs with the Base-64 it doesn't has: encoding="utf-8"

    What I''m doing wrong?
    Are there other ways to do it?


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    Re: UTF-8 To Base-64

    Hard to say what you may be doing wrong if you do not show the code you are using to get that result.
    Always use [code][/code] tags when posting code.

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.