Keisuke,
Thanks
using UTF-8 text without length resolved the extra 2 nulls being 
appended.

Chip
On Fri, 19 Apr 2019 23:26:38 +0000, Keisuke Miyako via 4D_Tech wrote:
> I wouldn't convert the text to MacRoman, max 32,000 bytes (i.e. v2004 
> format) text
> risking data loss - even if the possibility was minimal with small US 
> ASCII - just to be safe (and fast).
> 
>  TEXT TO BLOB($Text_Ptr->;$Blob;Mac text without length)
>  $Destination->:=BLOB to text($Blob;Mac text without length)
> 
> either specify UTF-8 which has no length limit or data loss,
> or even better, VARIABLE TO BLOB which does no conversion at all.
> 
> but I can not say how the 0x00 terminator was introduced,
> whether by OpenSSL which does the encryption or the BLOB/TEXT 
> conversion done by 4D.
> 
> 
> 
> **********************************************************************
> 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
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
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
**********************************************************************

Reply via email to