Re: how to convert text file with unknown 16 bit encoding to 8 bit as cii

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/8/14 Lancashire, Pete <plancashire@xxxxxxxxxxxxxxxxx>:
> how do I convert a file (or output to stdont) with an unknown 16 encoding
> into plain
> ol' ASCII aka 8 BIT ?
>
> Example of files contents
>
>  0 255 254
>  2  60   0
>  4  72   0
>  6  84   0
>  8  77   0
> 10  76   0
> 12  62   0
>
> or ..
>
> 0000000 377 376   <  \0   H  \0   T  \0   M  \0   L  \0   >  \0  \n  \0
> 0000020      \0      \0   <  \0   B  \0   O  \0   D  \0   Y  \0   >  \0
> 0000040  \n
>
> thanks,
>
>
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

You can use recode ( man recode for more info ... if not available, do
a yum install recode ) to convert a file from one character set to
another. It appears that the file is either in UCS-2 or UTF-16, so
that will be a start

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux