Jump to content


Photo

GM 8.1 doesn't load ä ö õ ü symbols form file


  • Please log in to reply
2 replies to this topic

#1 Timmo

Timmo

    GMC Member

  • New Member
  • 558 posts
  • Version:GM:HTML5

Posted 29 March 2012 - 09:37 AM

Hi, i think i have stumbled upon a bug in GM 8.1.
The script doesn't load string that has ö ä õ or ü in it. Other part of the string is returned, only these symbols are cut out. Try it, make a new file into the same directory where the file is and add this content:
asi=ödfdäõdfd

Use the script:
var f, rida, sekts, s, pos, m, v;

s=-1;
    f=file_text_open_read(working_directory+'/file.txt'); 
    while(!file_text_eof(f))               
    {
        rida=file_text_read_string(f);  
    
            pos=string_pos("=",rida); 
            m=string_copy(rida,0,pos-1)
            v=string_copy(rida,pos+1,string_length(rida))
            variable_local_set(m,v)
            show_message(v)
            file_text_readln(f);
    }

file_text_close(f);

Now run the program and you see that only dfddfd is returned. It worked fine in GM 8.0. Is there some new feature or something i am not aware of?
  • 0

#2 Lightang3l

Lightang3l

    GMC Member

  • GMC Member
  • 851 posts

Posted 29 March 2012 - 09:53 AM

Don't make 2 topics for the same thing.

Anyway, I think (and this is just a shot in the dark) GM8.1's code editor is unicode now... or something.

I might have said a stupid thing just now, because I really don't know what unicode is... but that's my 2 cents.
  • 0

#3 Timmo

Timmo

    GMC Member

  • New Member
  • 558 posts
  • Version:GM:HTML5

Posted 07 April 2012 - 02:10 PM

Can somebody test it and tell me if this is reproducable.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users