LoadHTML action - Forum

Forum Navigation
You need to log in to create posts and topics.

LoadHTML action

I am not able to use the LoadHTML action with (Greek) foreign characters.  The HTML shows okay in alertboxes but not in containers, paragraphs or text areas. All I see is something like για ΕπιχειρήσειÏ. How do I enable the utf-8 character set? Thanks.

@fkapnist that's quite strange. Can you provide a sample app to test it?
Anyway as a workaround you can use FileToVar and, once the contant has been loaded, SetObjectHTML.
Thank you!

fkapnist has reacted to this post.
fkapnist
Quote from luishp on December 21, 2021, 9:19 am

@fkapnist that's quite strange. Can you provide a sample app to test it?
Anyway as a workaround you can use FileToVar and, once the contant has been loaded, SetObjectHTML.
Thank you!

I want to send a foreign text file (Greek) from NEOwin to NEOweb. But NEOwin has no Unicode and will interpret the text as gobbledygook. I have a small JavaScript somewhere that converts foreign text into a string of numbers. NEOweb then gets the string and converts it back to foreign text using the same JavaScript. As for SetObjectHTML, it works with simple HTML but in this example everything after the equal sign (=) was not recognized.

Uploaded files:
  • You need to login to have access to uploads.

The Javascript I mentioned above is actually an encryption script that converts any text into a string of random numbers, and then un-encrypts it with a simple password.  As it turns out, this method is much faster than "traditional" utf-8 converters which sometimes want to be told which language to use...

Vadim has reacted to this post.
Vadim

@fkapnist I think @noyzen is doing a very similar project.
Note that you can't use double quotes directly into SetObjectHTML. It's better to include your HTML content into a variable an then use that variable in SetObjectHTML instead of the HTML code. Or just replace double quotes for single quotes.

Regards.

fkapnist has reacted to this post.
fkapnist