Page 2 of 2
Re: How do I import a text file in Hebrew?
Posted: Sun May 08, 2022 6:02 pm
by Klaus
@liveCode
You should read all replies carefully and ask if you don't understand them!
Re: How do I import a text file in Hebrew?
Posted: Sun May 08, 2022 6:27 pm
by liveCode
I tried the solution that was there but it did not help
Re: How do I import a text file in Hebrew?
Posted: Sun May 08, 2022 6:35 pm
by richmond62
Again . . .
Unicode compliance?
Name of font?
Version of Windows?
Re: How do I import a text file in Hebrew?
Posted: Sun May 08, 2022 6:39 pm
by Klaus
liveCode wrote: Sun May 08, 2022 6:27 pm
I tried the solution that was there but it did not help
OK, then please tell us next time what you already tried, that is helpful for US!
Re: How do I import a text file in Hebrew?
Posted: Sun May 08, 2022 6:45 pm
by Klaus
Hmmm, see attached screenshot!?
I downloaded yout text file, opened it with TextEdit on my Mac and imported it
into an LC field with my above mentioned script. Looks really OK to me.
Re: How do I import a text file in Hebrew?
Posted: Tue May 10, 2022 2:15 pm
by liveCode
How can I get the user to select the file?
I tried this code and it did not work ...
Code: Select all
on mouseUp
answer file "file:"
put url(it) into tText
put textdecode(tText,"UTF-8") into fld 1
end mouseUp
Re: How do I import a text file in Hebrew?
Posted: Tue May 10, 2022 5:32 pm
by jacque
liveCode wrote: Tue May 10, 2022 2:15 pm
How can I get the user to select the file?
I tried this code and it did not work ...
Is this for mobile? Answer file and ask file don't work there.
On desktop you need to add the file designator:
Re: How do I import a text file in Hebrew?
Posted: Tue May 10, 2022 6:01 pm
by liveCode
This works if the text in the file is in English but if it is Hebrew then it leaves the field blank
Re: How do I import a text file in Hebrew?
Posted: Tue May 10, 2022 6:17 pm
by Klaus
Did you try with your own test file you had posted -> טקסט לדוגמא.txt ? That worked for me as you can see in my posting.
What exactly did you script? Why are you always so miserly with infos?
Re: How do I import a text file in Hebrew?
Posted: Tue May 10, 2022 6:27 pm
by richmond62
Why are you always so miserly with infos?
Possible answers:
1. The OP wants other people to do their work for them.
2. They have a very limited understanding of computers and computer programming . . .
(think "what is RTF?")
I asked the OP to attach their original text file, and they did NOT, they attached something different.