You are not logged in.

#1 2014-01-04 12:05:55

Registered: 2009-06-21
Posts: 271

phantomjs fs write not able to write diacratic properly

when i run the following js file using phantom :

	    var fs = require('fs');

		fs.write("veda1","śrī-bhagavān uvāca", 'w');
                fs.write("veda1.html","śrī-bhagavān uvāca", 'w');
                fs.write("veda2.html","<html><head></head><body>śrī-bhagavān uvāca</body></html>",'w');

the output are as follows:

for veda1

                  śrī-bhagavān uvāca

for veda1.html

                  Å›rÄ«-bhagavÄn uvÄca

for veda2.html

                   Å›rÄ«-bhagavÄn uvÄca

how to solve this. I want to write to veda2.html with correct diacratics.


Board footer

Powered by FluxBB