FW: UTF-8 and SEND HTML FILE with Tags

2018-07-31 Thread David Garrard via 4D_Tech
I have a 'good news' update on this.  With a work-around I was able to get
this working.

It seems that there is a bug in placement of multiple instances of Thai
language text - such as headers in a multi-cell table sent to a web browser
by 4D Web Server using a single 4DHTML tag for the whole table.  As reported
a couple weeks back doing this would truncate the table.  I suspect this
applies to other languages.

So to work-around, I used individual 4DHTML tags for each cell of the table
that had Thai text.  Not the best solution, but working fine now.

Hope this helps someone else.

David Garrard


#
David Garrard wrote:

Hello,

I am trying to get the correct output using SEND HTML FILE on a 4D Web
Server when the content is Thai characters and it stored in 4D v16.3
correctly.  

1) In Design… Database Settings… Compatibility, I have Unicode Mode on.
2) In Design… Database Settings… Web… Options (II), I have Send Extended
Characters Directly checked on.  And Standard Set is UTF-8.
3) The Thai text is legible in the forms in 4D and is valid Thai.
4) I have this in the header of my web page:  
5) When I place a simple tag that references some Thai data it is rendered
correctly by the browser using both 4DTEXT and 4DHTML. 
6) But if I build a text variable within 4D and place the Thai characters
inside a block of HTML using string commands in 4D to create an HTML table.
Like this snippet of the webpage for example:   

 
 


ชื่อย่อหุ้น
สัดส่วน (%)



BDMS
43.7



 

And then reference that variable in the HTML file via a 4DHTML tag, the
table content is not appearing - the whole table is corrupted or missing.  

It's pretty clear that it is related to the characters in the 2  tags,
because the exact same code with English data in the 2  tags in the
table leads it to be rendered fine.  

Does anyone have any ideas?  I thought I covered all the settings.

TIA,
David


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

UTF-8 and SEND HTML FILE with Tags

2018-07-26 Thread David Garrard via 4D_Tech
Hello,

I am trying to get the correct output using SEND HTML FILE on a 4D Web
Server when the content is Thai characters and it stored in 4D v16.3
correctly.  

1) In Design… Database Settings… Compatibility, I have Unicode Mode on.
2) In Design… Database Settings… Web… Options (II), I have Send Extended
Characters Directly checked on.  And Standard Set is UTF-8.
3) The Thai text is legible in the forms in 4D and is valid Thai.
4) I have this in the header of my web page:  
5) When I place a simple tag that references some Thai data it is rendered
correctly by the browser using both 4DTEXT and 4DHTML. 
6) But if I build a text variable within 4D and place the Thai characters
inside a block of HTML using string commands in 4D to create an HTML table.
Like this snippet of the webpage for example:   

 
 


ชื่อย่อหุ้น
สัดส่วน (%)



BDMS
43.7



 

And then reference that variable in the HTML file via a 4DHTML tag, the
table content is not appearing - the whole table is corrupted or missing.  

It's pretty clear that it is related to the characters in the 2  tags,
because the exact same code with English data in the 2  tags in the
table leads it to be rendered fine.  

Does anyone have any ideas?  I thought I covered all the settings.

TIA,
David

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**