English > Development

Character encoding for script

<< < (2/2)

nostra:
To find ">レーベル:</td> from your example do the following:
1. Create a file (for exmple value1.txt) in the "PVD Path\Scripts" directory
2. Put ">レーベル:</td> into the file and save it with UTF8 Encoding with BOM
3. Replace the line where you search for this text with the following line:

--- Code: ---StartPos := PosFrom(FileToString(GetAppPath + 'Scripts\value1.txt'), HTML, StartPos);
--- End code ---
So the value is replaced with: FileToString(GetAppPath + 'Scripts\value1.txt')

firefox:
Thanks nostra for example code. Finally, the script works well.
Is there any possible way that saving multiple japanese values in one txt file and load them in runtime?

nostra:
You can save multiple values in the same file, load the file to a string and then split it into separate values using String manipulation functions.

firefox:
I finished the script and it runs well.
Many thanks for your help!

Navigation

[0] Message Index

[*] Previous page

Go to full version