in reply to Re^5: Listing out the characters included in a character class [wide character warning]
in thread Listing out the characters included in a character class

The forum converts all of the characters which are related to the problem to HTML-entities, and I am unaware of a method by which the actual files could be attached.

I think you mean, "if I use a <code> block, the forum converts all of the characters to HTML-entities. But if I use a <pre> block, it handles them correctly."

paragraph: โมดูลนี้เป็นส่วนเสริมคำจำกัดความคลาสอักขระ

pre: โมดูลนี้เป็นส่วนเสริมคำจำกัดความคลาสอักขระ
code: &#3650;&#3617;&#3604;&#3641;&#3621;&#3609;&#3637;&#3657; &#3648;&#3611;&#3655;&#3609;&#3626;&#3656;&#3623; &#3609;&#3648;&#3626;&#3619;&#3636;&#3617; &#3588;&#3635;&#3592;&#3635;&#3585;&#3633;&#3604;&#3588; &#3623;&#3634;&#3617;&#3588;&#3621; &#3634;&#3626;&#3629;&#3633;&#3585;&#3586;&#3619;&#3632;

In fact, kcott already explained the <pre> vs <code> and you even made use of it in one of your earlier posts (which is where, btw, I grabbed my test string from). Thus, I'm not sure why you're now backpedaling and claiming that you cannot figure out how to share code that includes Unicode characters in the source or output: just use the <pre> like you did earlier.

  • Comment on Re^6: Listing out the characters included in a character class [wide character warning]
  • Select or Download Code

Replies are listed 'Best First'.
Re^7: Listing out the characters included in a character class [wide character warning]
by Polyglot (Chaplain) on Nov 04, 2023 at 13:18 UTC
    You may have missed seeing that I have used the <pre> tags in some posts here. Unfortunately, one cannot drop code into <pre> ... </pre> tags any better than the <code> tags. In fact, the <pre> tags require more intrusive code adjustments yet--all of the HTML tags have to be converted to HTML-entities or they will simply become tags used for the post itself. In other words, either way involves HTML-entities. Try out the feature and you will see that this is so.

    Blessings,

    ~Polyglot~