A Scripting Language for Web, Linux and Windows

A Scripting Language for Web, Linux and Windows

Example: Work with the Iconv library

Demonstrates how to work with Iconv library to convert charsets.
Iconv functions are defined in lib/iconv.inc.v1

Note: You have to install Iconv libraries. On Windows copy the 32-Bit DLL's from HERE into the home directory of V1 where v1.exe is located.

<?v1
require_once ("lib/iconv.inc.v1");

src "ÄÖÜß";

// Convert from UTF8 to CP850
dst iconv ("CP850""UTF-8"src);

print (
src" = "dst);

// Save converted text to file
fh fopen ("out.txt""w+");
fwrite (fhdst);

?>

back to Home