Unicode extensions
application/octet-stream
Magic Bytes
Offset: 0
55 46 41 C6 D2 C1
Unicode Extensions (UCE) is a legacy binary format developed by IBM for character mapping and internationalization support. These files are used to facilitate the conversion between different character encodings and to provide localized text data for older software environments. The format is considered safe because it stores non-executable data, though it is now largely obsolete in favor of more modern, unified character data standards.
Validation Code
How to validate .uce files in Python
Python
def is_uce(file_path: str) -> bool:
"""Check if file is a valid UCE by magic bytes."""
signature = bytes([0x55, 0x46, 0x41, 0xC6, 0xD2, 0xC1])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .uce files in Node.js
Node.js
function isUCE(buffer: Buffer): boolean {
const signature = Buffer.from([0x55, 0x46, 0x41, 0xC6, 0xD2, 0xC1]);
return buffer.subarray(0, 6).equals(signature);
}
Go
func IsUCE(data []byte) bool {
signature := []byte{0x55, 0x46, 0x41, 0xC6, 0xD2, 0xC1}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
GET
/api/v1/uce
curl https://filesignature.org/api/v1/uce