Update Doku aus Driversourcen
Change-Id: I455f0813b970151089b3dc1b8d9407eea323cdd1
diff --git a/doc/hook/file_encoding b/doc/hook/file_encoding
new file mode 100644
index 0000000..3c7c6d8
--- /dev/null
+++ b/doc/hook/file_encoding
@@ -0,0 +1,27 @@
+SYNOPSIS
+ #include <sys/driver_hooks.h>
+
+ set_driver_hook(H_FILE_ENCODING, value)
+
+ <value> being:
+
+ string <text>
+ string <closure>(string filename)
+
+DESCRIPTION
+ Optonal hook specifying the name of the encoding to be used
+ for decoding a file. Hook setting can be a string or a closure.
+
+ If no hook was specified or the closure returns 0, then the
+ default "ascii" is used (and thus will throw an error upon
+ chars greater than 0x7f in the file).
+
+ If the settings is a closure, it will be called for every file
+ opened by the compiler or by read_file() and write_file()
+ (unless an explicit encoding was given).
+
+HISTORY
+ Introduced in LDMud 3.5.1
+
+SEE ALSO
+ hooks(C)