Problem with Terminal (shell) and its encoding

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Nov 4 08:59:06 EST 2008


Hi Rolf,

set the unicodetext of fld x to uniencode(varLongUserName,"UTF8")

should work.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum/

Benefit from our inexpensive hosting services. See http://economy-x-talk.com/server.html 
  for more info.

On 4 nov 2008, at 14:39, Rolf Kocherhans wrote:

> Hello all
>
> I have a small problem with the following command:
>
> put shell("niutil -readprop . /users/`whoami` realname") into  
> varLongUsername
> answer varLongUsername
>
>
> If I execute "niutil -readprop . /users/`whoami` realname" in the  
> Terminal evan when
> the username includes non standard ascii character it is displayed  
> OK in the Terminal.
>
> But when I copy it to the Revolution side with the script above the  
> varLongUsername is
> garbled where the non acssi characters are !
>
> Hans anybody a clue how I can convert the garbage to the real  
> letters so that I can see
> the real "Long Username" of a person ?
>
> Regards
> Rolf




More information about the use-livecode mailing list