NetTalk Central

Author Topic: XHTML - AsciiToUTF and nbsp  (Read 3667 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
XHTML - AsciiToUTF and nbsp
« on: November 22, 2020, 10:10:41 AM »
Hi Bruce,

I have some code in the XHTML tab of a NetWebForm. The code contains " " in a few places to get the height of some elements correct.

But, the form does not display. If I remove the " ", the form displays correctly.

It seems that the call to AsciiToUTF in the generated code does not like " ".

Please advise how to embed " " in my XTHML code.

Regards,
Ubaidullah Nubar.

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: XHTML - AsciiToUTF and nbsp
« Reply #1 on: November 22, 2020, 06:19:22 PM »
  is an Named Character Reference for a non-breaking space.  It is one of many HTML entities.

Try   in its place. 

  is a Numeric Character Reference (decimal) for a non-breaking space.  Interestingly, there is a HEX version as well:   

Your form should display properly with   .

See ya.

Don
« Last Edit: November 22, 2020, 07:20:10 PM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: XHTML - AsciiToUTF and nbsp
« Reply #2 on: November 22, 2020, 10:44:10 PM »
Thanks Don.

That worked well.

Regards,
Ubaidullah Nubar.