Hello everyone,
I'm trying to convert text encoded with Windows-1252 character encoding into binary data. However, the textToBinary function doesn't seem to accept the Windows-1252 encoding. Can anyone suggest an alternative method or workaround for this?
hi pier,
you can use below forge component. i supported Windows-1252 encode.
https://www.outsystems.com/forge/component-overview/5599/charset-detector-o11
thanks
cv
Hi Chandra,
That components seem to detect only, not convert.
Hi Pier,
There's no out-of-the-box solution. There's this Forge asset, but that's for ISO-8859-1, which is similar to Windows 1252, but has a difference in characters 128-159. If that's no problem for your text you might give it a try.
Looking at the source code of BinaryData extension I can see it does support Windows-1252 encoding.
Please find attached the oml which does encoding using Windows-1252 and convert back and also detects the correct encoding (using the forge component mentioned by @Chandra Vikas ) . btw @Pier Paolo Annis what issue you are facing while encoding ?