Special Chars in Visualizationfor QR code string

2025-09-29
2025-10-04
  • jzhvymetal77 - 2025-09-29

    In Visualization, is there any way to make special characters in a string display properly in a Text object? I wrote a function block to create QR codes at runtime. My code uses β€œ$DB,” which in ASCII should render as a solid block. The code works, but to display it in Visualization I had to create multiple rectangles with visibility bound to a BOOL array. That works, but since each BOOL must be exposed as a separate variable, it consumes most of the available monitoring resources. See Attached image.

     
  • jzhvymetal77 - 2025-09-29

    Ok I'm closer as I switch using WSTRING but in Visualization it does not respect LINE BREAKS. Instead it shows $n. See attached image.

     

    Last edit: jzhvymetal77 2025-09-29
  • jzhvymetal77 - 2025-10-04

    Ok, I got UTF-8 encoding working by encoding the full block character using [16#E2, 16#96, 16#88], which corresponds to U+2588 "β–ˆ". Moving forward, I’ll use this for creating a QR code with Version 10-M (byte mode). This version allows up to 213 characters to be encoded.

     

Log in to post a comment.