Search found 20 matches

by joeMich
Wed Feb 28, 2024 3:53 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

Seems that this works:

from LC: macToIso

into php:

Code: Select all

$titel[] = mb_convert_encoding($linjeArray[12],'UTF-8','ISO-8859-1');
I get strange signs if I don't use the mb-convert_encoding


Right now I think the problems are solved
by joeMich
Wed Feb 28, 2024 3:33 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

You are right
There are still unexpected chars
Maybe that is a little part of the problem?
Yep :lol:

I'll try to export from Livecode to a text-file with the encoding that you suggest.

Thanks!
by joeMich
Tue Feb 27, 2024 11:12 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

Now I think I got it working I made some tests with "textEncode" in a stack (attachement) When I tried the "UTF-16" version, then it looked much alike the one I had made earlier. So I took out the chars that I knew would be used and filled the conversion into my "translator" --little translator - ot...
by joeMich
Tue Feb 27, 2024 5:05 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

But is the problem necessarily tied to a font?
Or are you just using the font (scheme) to see what to translate to?

When the webpage (PHP script) reads the text-file, no font is specified
by joeMich
Tue Feb 27, 2024 3:12 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

Thank you for input
I shall dig into it when I get home later

And, ha ha. I like your sense of humour 😜
by joeMich
Tue Feb 27, 2024 1:21 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

and I read from the text-file into memory via php with

Code: Select all

$versemaalLinjer = file_get_contents("versemaal.txt");
by joeMich
Tue Feb 27, 2024 1:19 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

Yes, Klaus simply put into a text-file on mouseUp set the itemdel to "/" get the effective filename of this stack delete item -1 of it put it & "/" into stakkensFilsti ---nu har vi stien for mappen, der indeholder stakken ---lav evt en datamappe ---put it & "/datamappe/" into dataMappensFilsti put s...
by joeMich
Tue Feb 27, 2024 11:08 am
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

the snippet that you brought into the discussion, richmond22, is interesting.
I'll have to dig a little more to understand how it works
by joeMich
Tue Feb 27, 2024 10:43 am
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

Re: text conversion?

Hi again First of all: Thanks for responses!!! I'm sure I was not good at explaining my problem: At first I just exported the text of card flds into a txt-file. When I open that on my Mac it's looks all fine. But when I import the text (via PHP) certain chars are replaced I guess it might well have ...
by joeMich
Mon Feb 26, 2024 4:42 pm
Forum: Talking LiveCode
Topic: text conversion?
Replies: 30
Views: 2296

text conversion?

Hi For my work as a church musician I have a stack with all the metrics used in our different hymnals Each card has its own metric variation and the song using that metric are mentioned on that card You could call it a Stone Age database - it is a very simple form of database indeed Now I have made ...
by joeMich
Mon Dec 19, 2011 6:43 pm
Forum: Off-Topic
Topic: browse tool from openstack script not working
Replies: 24
Views: 14687

Re: browse tool from openstack script not working

ha ha - I "massaged" it down to 2 milliseconds and then it worked!
thanks for pointing it out!

But I still think it must be a bug, that it doesn't work in the first instance...

best regards
Johan
by joeMich
Mon Dec 19, 2011 1:44 pm
Forum: Off-Topic
Topic: browse tool from openstack script not working
Replies: 24
Views: 14687

Re: browse tool from openstack script not working

I'm sort of glad that I'm not the only one experiencing this behaviour. Guess it must be a bug then... I have never had this problem before the 5.0.2 update. For now I can live with invoking the browse tool with the keyboard (cmd+9) - but I shurely would like it to be fixed in one of the next update...
by joeMich
Fri Dec 16, 2011 3:37 pm
Forum: Off-Topic
Topic: browse tool from openstack script not working
Replies: 24
Views: 14687

Re: browse tool from openstack script not working

Do I understand correctly that it works in a very simple otherwise empty stack but not in the stack in which you want to use it? No it doesn't work, neither in the simple otherwise empty stack (like the one I attached - I created that as a test...) -nor in the stack(s) that I have created and used ...
by joeMich
Fri Dec 16, 2011 1:40 pm
Forum: Off-Topic
Topic: browse tool from openstack script not working
Replies: 24
Views: 14687

Re: browse tool from openstack script not working

I did as you suggested
but the same result
no change of tool at startup

Can it be because I haven't deleted the old versions of liveCode?

best regards
Johan
by joeMich
Fri Dec 16, 2011 11:14 am
Forum: Off-Topic
Topic: browse tool from openstack script not working
Replies: 24
Views: 14687

Re: browse tool from openstack script not working

I still can't get it working the command works fine from the message-window I always have used the (and it has always worked fine) if the tool is not "browse tool" then... but it doesn't seem to be right now, so I changed it to if the tool is not browse then... The whole stack script: on openStack p...

Go to advanced search