![]() |
AW: replace string with spaces?
Index.html file to test is included in the zip. I want change the website Title.
|
AW: replace string with spaces?
It doesn't work because your did not read correctly what Dalai has written before.
|
AW: replace string with spaces?
I think StringReplace doesn't work because HTML file is not in ANSI text but in UTF or Unicode format. I'll check. Yes I thought so. UTF-8. So what to do now?
|
AW: replace string with spaces?
StringReplace will only work on ANSI files. So I need to use Stream Read to read file in UTF-8 format then what? Convert to ANSI or use some unicode string replace function that works with UTF-8?
|
AW: replace string with spaces?
Use XE8.
|
AW: replace string with spaces?
DieDolly was using ANSI INI file. I have UTF-8 file. Here is one solution.
SS := TStringStream.Create('', TEncoding.UTF8); SS.LoadFromFile(ParamStr1); S := StringReplace(SS.DataString, 'Å', 'A', [rfReplaceAll]); SS2 := TStringStream.Create(S, TEncoding.UTF8); SS2.SaveToFile(ParamStr2); SS2.Free; SS.Free; |
AW: replace string with spaces?
Zitat:
|
AW: replace string with spaces?
Right. That was my mistake sorry. It works now.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:12 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz