FileBuzz: Software Download
Find shareware, freeware downloads from thousands of software titles

Program Name: Detect character encoding in an XML file

Published By:

License Type: Freeware

Date Released: March 27, 2012

Detect character encoding in an XML file Instant Download

Detect character encoding in an XML file Desciption:


This script contains a function that analyzes an open xml file for its characters encoding by
- checking for a unicode BOM or (on failure);
- searching the xml declaration at the beginning of the file for the "encoding" attribute ;

It attempts to detect the character encoding of the xml file given by a file object that must not be a codec wrapped file object.

The return value can be:
- if detection of the BOM succeeds, the codec name of the corresponding unicode charset is returned 
- if BOM detection fails, the xml declaration is searched for the encoding attribute and its value returned. the "<" character has to be the very first in the file then (it's xml standard after all). 
- if BOM and xml declaration fail, None is returned. According to xml 1.0 it should be utf_8 then, but it wasn't detected by the means offered here. At least, one can be pretty sure that a character coding including most of ASCII is used.

License: Freeware | Downloads (265)

Platform: All

Language: Python

Related Software
New Reviews
New Downloads Top Downloads Top Search

New Downloads

WavePad Masters Edition
Vehicle Fleet Manager
ACDSee Pro
7-Data Photo Recovery
1st Clipboard
ZenMate VPN for Windows
DVDFab DVD & Blu-ray Cinavia Removal
Passwords by Mask
Soda PDF
7-Data Android Recovery
Random Number Generator Pro
Intuwiz G-code Generator
QFX2CSV for Mac
DVDFab HD Decrypter for Mac
SoundTap Free Mac Audio Stream Recorder
TunesKit Apple Music Converter for Mac
Passenger Train Simulator
IW Advanced Password Generator

Top Downloads

Opera Mini
Turbo C++
Abyss Web Server X1
TaskMerlin Project Management Software
Macrorit Disk Partition Expert Server Edition
Foxit Advanced PDF Editor
Kids Online Browser
Rapid PHP Editor
Cleanup and Update Tool for Cisco CUCM
Open-School Community Edition
Count Code
Daniel Drubin Access Control Suite
simplitec simplisafe
Multi-Process Killer Portable
SCEA Part 2 & 3 Exam EPractize Labs Enterprise
Silva 2.1a2
Agama Web Menus
aXmag Free
Flash Player Pro
Red Call Recorder
Photo! 3D Album
Syston Data Recovery Free

Top Search

Special Character In Xml File
Huge Xml File Splitter Software
Xml File All Ip Country
Excel Xml File Generator
Character Count Xml Files
Windows Echo Xml To File
Character Count Html File
Software To Split Large Xml File
Ms Access Read Xml File
Xml File Compare Open Source
Import Big Xml File Mysql
Create Ms Project Xml File
How To Open Xml File Cadence
Decrypt Xml File
Open Xml File In Excel From Batch
Export Excel To Xml File Java
Convert Xml File Linux
Java Export Xml File
How To Edit The Xml File Php
Online Xml File Reader
Read Xml File Messenger Plus
Editor Xml File Convert Hex
Php Export Data Xml File
Batch File Processing Xml File
Compare Xml File Java Source Code