Results 1 to 40 of 160

Thread: VB6 - JsonBag, Another JSON Parser/Generator

Threaded View

  1. #35
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,454

    Re: VB6 - JsonBag, Another JSON Parser/Generator

    Quote Originally Posted by BooksRUs View Post
    Anyway, my question is... can I "fix" this somewhere in the JsonBag class to simply replace this with a "normal" question mark character "?" ?
    If the JSON-decoder works correclty, then the *decoded* JSON-value (behind the Key: "itemName") -
    should contain a valid Unicode (WChar) of Value &HFFFD.

    Any Unicode-capable TextOutput (or Text-Control) should render the correct character-glyph
    (in case the Font supports it, as e.g. "Segoe UI" does).

    If you render this via ANSI-TextOutput, or -Controls, then the character-glyph should be rendered as ? automatically.

    If you don't want "correct render-output, from a correctly decoded value" -
    then I'd not "fix" it in the JSON-decoder-class itself -
    but in the decoded result instead ... e.g. via a simple Replace:
    NewDecodedResult = Replace(DecodedResult, ChrW$(&HFFFD), "?")

    Olaf
    Last edited by Schmidt; Apr 18th, 2024 at 05:20 PM.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width