charset=iso-8859-1

If you need help on how to use the program
Post Reply
fulvio53s03
Posts: 745
Joined: 2007-04-28 05:46:43
Location: Italy

charset=iso-8859-1

Post by fulvio53s03 »

In this page: http://www.mondourania.com/Urania/u841- ... nia853.htm my code:

Code: Select all

  ComicURL := 'http://www.mondourania.com/Urania/u841-860/urania853.htm';  
  Page := GetPage(ComicURL);
  CharAbNormal := '<TR>';
  CharNormal := '<tr>';
  StringReplace(Page, CharAbNormal, CharNormal);
has no effects.
I think that charset iso-8859-1 specified in html page could be the problem.
Am I right or my code is wrong?
what can I do?
Thanks. :)
antp
Site Admin
Posts: 9636
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: charset=iso-8859-1

Post by antp »

iso-8859-1 is the closest to Windows-1252, which is the character set AMC uses if you have a Windows configured for a west-european language.
So that encoding is fine for use in scripts.
But the last line should be:
Page := StringReplace(Page, CharAbNormal, CharNormal);
StringReplace does not modify the variable: it returns a new value
fulvio53s03
Posts: 745
Joined: 2007-04-28 05:46:43
Location: Italy

Re: charset=iso-8859-1

Post by fulvio53s03 »

antp wrote: 2024-09-18 07:13:39 ... But the last line should be:
Page := StringReplace(Page, CharAbNormal, CharNormal); ...
oh, noooo!
Fulvio, you must write 100 times:
Never write scripts before 5 A.M.!
Never write scripts before 5 A.M.!
Never write scripts before 5 A.M.!
Never write scripts before 5 A.M.!
...
...
Never write scripts before 5 A.M.!
:google :stupid:
Post Reply