FSSE8INFO
php and notepad unicode files
  • FSSE8INFO
    • drafts
    • 2013
    • 2014
      • 01
      • 02
      • 03
      • 06
        • Synergy lets you share one mouse and keyboard between multiple Windows, Mac OS X and Linux desktops
        • ubuntu 14.04 percona 5.5 enable remote tcp access
        • ubuntu 14.04 (trusty) percona 5 install howto
        • if you have issues with #javascript try #typescript
        • get your raspberry pi to tweet every hour
        • Setup a bitnami Ubuntu VM after install
        • Detecting UTF BOM (byte order mark) using PHP
        • how to install webmin on bitnami ubuntu and set up ubuntu firewall to allow access
        • oracle linux 6 percona 5.5 mysql db yum repo install
        • oracle linux 6 php 5.6 install
        • oracle linux nginx install
        • 2015 07 22 php and notepad unic
        • php unicode utf-16 bom processing with iconv and mb_convert
        • ubuntu firewall settings to allow ssh, http and webmin
        • centos oracle uek red hat 5 6 7 nginx php 5.6 install howto
        • #sysadmin @webmin #webminstats historical system stats module install
        • cent/ouek/rhel 6.x linux 2.x nginx 1.x php 5.x phpmyadmin 4 install problem
        • nginx 1.x php 5.6 phpmyadmin 4.x
        • @voxox have just run out of #voip #inums but check again in a few weeks
        • m$ #statisscan lets you check any URL for out-of-date libraries, layout and accessibility issues
        • @oracle #uek #gnu/linux support costs can be 7x lower than @redhat #rhel #gnu/linux
      • 08
      • 09
      • 10
      • 11
      • 12
    • 2016
    • 2017
    • 2018
    • 2019
    • 2020
    • 2021
    • 2022
    • 2023
    • 2024
    • 2025
    • 2026
  1. FSSE8INFO
  2. Posts
  3. 2015
  4. 07
  5. 2015 07 22 php and notepad unic

php and notepad unicode files

notepad unicode csvfiles have a 2 byte BOM (FEFF) and are UTF-16/UCS-2 little endian encoded

  • https://anupamsaha.wordpress.com/2011/08/02/detecting-utf-byte-order-mark-using-php/
  • http://www.w3schools.com/php/func_misc_pack.asp
$ od -t x1z hot.csv | head
0000000 ff fe 48 00 6f 00 74 00 65 00 6c 00 49 00 44 00  >..H.o.t

$ od -t x2z hot.csv | head
0000000 feff 0048 006f 0074 0065 006c 0049 0044  >..H.o.t
bom little-endian php ucs-2 unicode utf-16
Previous
oracle linux nginx install
Next
php unicode utf-16 bom processing with iconv and mb_convert
Copyright © 2026 osde.info
Made with Zensical