UTF-16 conversion

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

UTF-16 conversion

Stephen Smiroldo-4
Is there a way to convert UTF-16 characters into Unicode text using Lasso 8.6?

For example, how would I convert this to unicode text:

\u0422\u04e9\u0433\u0441\u04e9\u04e9

When I paste the above into the UTF-16 field using this conversion tool (https://www.branah.com/unicode-converter), it spits out the unicode text of “Төгсөө” (which is what I’m looking to accomplish in Lasso).

Do I just need to use a 3rd party api to do this? If so, what do you all recommend?



__________________________
Stephen Smiroldo
StudioThought LLC
Website Design & Digital Marketing
http://www.studiothought.com <http://www.studiothought.com/>



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: UTF-16 conversion

Bil Corry-3
It probably involves using the bytes type and populating it with the
values, then exporting the string as UTF-16:

http://reference.lassosoft.com/LassoReference.LassoApp?[Bytes-%3EExportString]


- Bil

On Fri, Jun 2, 2017 at 6:53 AM, Stephen Smiroldo <[hidden email]>
wrote:

> Is there a way to convert UTF-16 characters into Unicode text using Lasso
> 8.6?
>
> For example, how would I convert this to unicode text:
>
> \u0422\u04e9\u0433\u0441\u04e9\u04e9
>
> When I paste the above into the UTF-16 field using this conversion tool (
> https://www.branah.com/unicode-converter), it spits out the unicode text
> of “Төгсөө” (which is what I’m looking to accomplish in Lasso).
>
> Do I just need to use a 3rd party api to do this? If so, what do you all
> recommend?
>
>
>
> __________________________
> Stephen Smiroldo
> StudioThought LLC
> Website Design & Digital Marketing
> http://www.studiothought.com <http://www.studiothought.com/>
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: UTF-16 conversion

Mark J. Reed
First, UTF-16 *is* Unicode text. There are many ways of representing
Unicode text in computers, and UTF-16 is one such way.

Second, "\u0422\u04e9\u0433\u0441\u04e9\u04e9" is not UTF-16. It's just a
series of Unicode code points encoded using the `\uXXX` convention, and as
such it's actually just ASCII. If the code points include surrogate pairs,
then I guess that would make it an ASCII encoding of UTF-16 in particular,
but that's not the case here. Such a string works as-is as a literal inside
Lasso source code, but I don't know of anything in Lasso that will parse a
runtime string in memory that has `\u` escapes.


On Fri, Jun 2, 2017 at 6:57 PM, Bil Corry <[hidden email]> wrote:

> It probably involves using the bytes type and populating it with the
> values, then exporting the string as UTF-16:
>
> http://reference.lassosoft.com/LassoReference.LassoApp?[
> Bytes-%3EExportString]
>
>
> - Bil
>
> On Fri, Jun 2, 2017 at 6:53 AM, Stephen Smiroldo <
> [hidden email]>
> wrote:
>
> > Is there a way to convert UTF-16 characters into Unicode text using Lasso
> > 8.6?
> >
> > For example, how would I convert this to unicode text:
> >
> > \u0422\u04e9\u0433\u0441\u04e9\u04e9
> >
> > When I paste the above into the UTF-16 field using this conversion tool (
> > https://www.branah.com/unicode-converter), it spits out the unicode text
> > of “Төгсөө” (which is what I’m looking to accomplish in Lasso).
> >
> > Do I just need to use a 3rd party api to do this? If so, what do you all
> > recommend?
> >
> >
> >
> > __________________________
> > Stephen Smiroldo
> > StudioThought LLC
> > Website Design & Digital Marketing
> > http://www.studiothought.com <http://www.studiothought.com/>
> >
> >
> >
> > #############################################################
> >
> > This message is sent to you because you are subscribed to
> >   the mailing list Lasso [hidden email]
> > Official list archives available at http://www.lassotalk.com
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>



--
Mark J. Reed <[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: UTF-16 conversion

Stephen Smiroldo-4
In reply to this post by Bil Corry-3
Thanks Bil, that worked!!



> On Jun 2, 2017, at 6:57 PM, Bil Corry <[hidden email]> wrote:
>
> It probably involves using the bytes type and populating it with the
> values, then exporting the string as UTF-16:
>
> http://reference.lassosoft.com/LassoReference.LassoApp?[Bytes-%3EExportString <http://reference.lassosoft.com/LassoReference.LassoApp?[Bytes-%3EExportString>]
>
>
> - Bil
>
> On Fri, Jun 2, 2017 at 6:53 AM, Stephen Smiroldo <[hidden email] <mailto:[hidden email]>>
> wrote:
>
>> Is there a way to convert UTF-16 characters into Unicode text using Lasso
>> 8.6?
>>
>> For example, how would I convert this to unicode text:
>>
>> \u0422\u04e9\u0433\u0441\u04e9\u04e9
>>
>> When I paste the above into the UTF-16 field using this conversion tool (
>> https://www.branah.com/unicode-converter), it spits out the unicode text
>> of “Төгсөө” (which is what I’m looking to accomplish in Lasso).
>>
>> Do I just need to use a 3rd party api to do this? If so, what do you all
>> recommend?
>>
>>
>>
>> __________________________
>> Stephen Smiroldo
>> StudioThought LLC
>> Website Design & Digital Marketing
>> http://www.studiothought.com <http://www.studiothought.com/> <http://www.studiothought.com/ <http://www.studiothought.com/>>
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email] <mailto:[hidden email]>
>> Official list archives available at http://www.lassotalk.com <http://www.lassotalk.com/>
>> To unsubscribe, E-mail to: <[hidden email] <mailto:[hidden email]>>
>> Send administrative queries to  <[hidden email] <mailto:[hidden email]>>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email] <mailto:[hidden email]>
> Official list archives available at http://www.lassotalk.com <http://www.lassotalk.com/>
> To unsubscribe, E-mail to: <[hidden email] <mailto:[hidden email]>>
> Send administrative queries to  <[hidden email] <mailto:[hidden email]>>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>