SITEFORUM - Maximizing Enterprise Value


 
SITEFORUM is a unique suite

How to use file encoding?

Example:

$set{HTML}
{
<html>
<head>
<meta name="content-type" content="text/html; charset=$system.sw.getOSFileEncoding{}" />
...
</head>
<body></body>
</html>
}

$// ~~~ write HTML file to disk ~~~
$if{$io.exists{$get{protocoll}$get{path}/index.html}}
       {$io.rewrite{$get{protocoll}$get{path}/index.html}{1}{$encodeString{$get{HTML}}{$system.sw.getOSFileEncoding{}}}}
       {$io.write{$get{protocoll}$get{path}/index.html}{1}{$encodeString{$get{HTML}}{$system.sw.getOSFileEncoding{}}}}


 

Online Users

top
Copyright © 1999-2014 by SITEFORUM - Maximizing Enterprise Value. All rights reserved.