Sven could you update the class comments of such classes and we should
finish to get rid of them.
Your solution is much nicer.
Stef
Le 5/6/16 à 21:40, Sven Van Caekenberghe a écrit :
On 05 Jun 2016, at 21:07, Hilaire wrote:
Hello Sabine,
Just a suggestion.
If your
On Mon, Jun 06, 2016 at 08:34:40PM +0200, Sven Van Caekenberghe wrote:
>
> > On 06 Jun 2016, at 17:22, Sabine Manaa wrote:
> >
> > why ByteArray?
>
> http://www.unicode.org/faq/utf_bom.html
>
> A Unicode transformation format (UTF) is an algorithmic mapping from every
Hi Sven,
thank you very much for your explanation. I will read the pharo book
chapter again tomorrow morning.
Each time I have to do with encoding, I have to start again with
reading;-(
I was not asking for the reason of encoding but because OSProcess command:
needs a String and not a Byte
> On 06 Jun 2016, at 17:22, Sabine Manaa wrote:
>
> why ByteArray?
http://www.unicode.org/faq/utf_bom.html
A Unicode transformation format (UTF) is an algorithmic mapping from every
Unicode code point (except surrogate code points) to a unique byte sequence.
Sorry, I did a mistake. I reversed it by mistake.
asString is needed.
does work :
OSProcess command: ('cp /Library/WebServer/Documents/reports/bär.pdf
/Library/WebServer/Documents/reports/test-a.pdf' utf8Encoded asString).
does not work (Improper store into indexable object):
OSProcess
Hi Dave, Sabine, Norbert et all,
Few weeks (months?) ago I was also reviewing this topic of encoding a
OS(Sub)Process. After surfing a bit the web, I found out the most simple
and accurate answer/solution was indeed to set the correct locale and/or
text encoding in the computer in question.
Norbert,
You are probably right. I'm not sure the best way to handle it.
Dave
> Dave,
>
>> Am 06.06.2016 um 18:13 schrieb David T. Lewis :
>>
>> Hi Sabine,
>>
>> That's great that #utf8Encoded is working, thanks for confirming.
>>
>> I'll look and see if I can add that to
Dave,
> Am 06.06.2016 um 18:13 schrieb David T. Lewis :
>
> Hi Sabine,
>
> That's great that #utf8Encoded is working, thanks for confirming.
>
> I'll look and see if I can add that to OSProcess (I'm traveling and cannot
> look at it right now).
>
> Mariano - this thread
Hi Sabine,
That's great that #utf8Encoded is working, thanks for confirming.
I'll look and see if I can add that to OSProcess (I'm traveling and cannot
look at it right now).
Mariano - this thread probably applies to OSSubProcess also.
Dave
> Hi Sven,
>
> why ByteArray?
>
> does not work
Hi Sven,
why ByteArray?
does not work (Improper store into indexable object):
OSProcess command: ('cp /Library/WebServer/Documents/reports/bär.pdf
/Library/WebServer/Documents/reports/test-a.pdf' utf8Encoded asString).
works:
OSProcess command: ('cp
Hi Dave,
I get the german ä with:
(Character value: 228) asString
Do you want me to go in it and suggest a solution or do you want to try to
fix it and I test it?
Thanks for helping!
Regards Sabine
2016-06-05 23:08 GMT+02:00 David T. Lewis [via Smalltalk] <
I think that Hilaire is right, although I don't know enough to say
how to handle the issue properly.
I tried making a unix file called b??r.pdf. I did this by
pasting the name with umlout from Sabine's email. I don't understand
the encodings (and my system is set up as US English), but I can say
> On 05 Jun 2016, at 21:07, Hilaire wrote:
>
> Hello Sabine,
>
> Just a suggestion.
> If your string is not pure ascii you may need to convert it to UTF8
> first as this is what likely expect your OS host.
>
> Indeed Pharo string are not internally encoded as utf8
If that
Hello Sabine,
Just a suggestion.
If your string is not pure ascii you may need to convert it to UTF8
first as this is what likely expect your OS host.
Indeed Pharo string are not internally encoded as utf8
Check the UTF8TextConverter class to do so.
Hilaire
Le 05/06/2016 18:39, Sabine Manaa a
Hi,
on command line, this works, my file is copied:
cp /Library/WebServer/Documents/reports/bär.pdf
/Library/WebServer/Documents/reports/test.pdf
In Pharo (4+5) this does not work (file not copied, no error message)
OSProcess command: 'cp /Library/WebServer/Documents/reports/bär.pdf
15 matches
Mail list logo