dragData["private"] is not Unicode aware

J. Landman Gay jacque at hyperactivesw.com
Mon Jun 17 16:56:48 EDT 2019


I had a similar problem with the merge command. Try using urlEncode to 
store the text and urlDecode to retrieve it.

Both our issues should probably be reported as bugs, but I haven't had 
time. Feel free. :)

On 6/17/19 3:09 PM, Paul Dupuis via use-livecode wrote:
> Folks (those who may have an interest at least):
> 
> I just filed a bug: https://quality.livecode.com/show_bug.cgi?id=22192
> 
> Essentially, I discovered in LC905rc1 that:
> 
> For years you could do:
> 
> set the dragData["private"] to "Some English Text"
> 
> and then put the dragData{"private"] and get "Some English Text"
> 
> In trying to may our apps more internationally aware (i.e. supporting 
> Unicode), we just tried:
> 
> set the dragData["private"] to "一些中文文本"
> 
> and then put the dragData["private"] and we got "??????"
> 
> And, before someone says "Use "text" vs "private", we use "private" 
> since, in our app, other data beside some text is added and that data is 
> private to our application (i.e. it should not be draggable outside our 
> app). My understanding is the using "text" would allow the data to be 
> draggable to other apps that allow dropped text.
> 
> Does this ("Private" NOT Unicode aware) seem like a Feature or a Bug?
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com





More information about the use-livecode mailing list