PHP code example of mosaxiv / stream-filter-mbencoding
1. Go to this page and download the library: Download mosaxiv/stream-filter-mbencoding library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mosaxiv / stream-filter-mbencoding example snippets
use StreamFilter\ConvertMbEncoding;
use SplFileObject;
ConvertMbEncoding::register();
$url = ConvertMbEncoding::getFilterURL('test.csv', 'UTF-8', 'SJIS-WIN');
$file = new SplFileObject($url);