News:

  • September 22, 2026, 06:35:32 AM

Login with username, password and session length

Author Topic: Symbols  (Read 8953 times)

mhw

  • Hero Member
  • *****
  • Posts: 250
Symbols
« on: July 27, 2023, 11:14:58 AM »
I am trying to STRPRINT the degree symbol (?) in DmD. It displays correctly in the instruction but shows as a . in data view and a 0 when sent to an email address. Is it possible to correctly display it?

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: Symbols
« Reply #1 on: July 27, 2023, 11:47:54 AM »
You are opening the can of worms regarding text.

Degree symbol is NOT standard ASCII.  Hence, beauty is in the eye of the beholder (or the rendering is based on the code-page of the system receiving the text-based email).

There are articles upon articles about this issue, starting with how you enter it (does/how does your editor support non-standard ASCII), and then how it's rendered (how the recipient perceives it).

Since Designer only supports basic text email (not HTML), you are kind of stuck.

You could view it in Data View as Quoted Text, then you will get the $-escape sequence value (probably "$BA"???).  Regardless, your recipient needs to see it.  If it's more than 1 recipient, you might have to send a different email for each recipient depending on how their specific email client views non-standard ASCII text emails.

This article https://stackoverflow.com/questions/67536302/plain-text-email-not-able-to-display-non-ascii-characters says a good email client may be able to comprehend a plain text email with extended ASCII as UTF-8 (one version of Unicode encoding).  The UTF-8 Unicode characters for the degree symbol are 0xC2 0xB0, so "$C2$B0" in Designer.  It won't display correctly in Designer (it uses ANSI, not Unicode), but the email recipient may see it correctly.

Or, just spell out "degrees"  ;D.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: Symbols
« Reply #2 on: July 27, 2023, 11:50:43 AM »
I am trying to STRPRINT the degree symbol (?) in DmD. It displays correctly in the instruction but shows as a . in data view and a 0 when sent to an email address. Is it possible to correctly display it?

Did you notice how the degree symbol in your post got converted to a question mark.  This is yet another "rendering" of a degree symbol (i.e. html based browser does not understand that non-ASCII character).

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: Symbols
« Reply #3 on: July 27, 2023, 03:03:22 PM »
I split out the topic once it changed topics (degree symbol vs smtp protocol issues)
Here's the new thread
https://forum.hosteng.com/index.php?topic=3826.0