I was reading through some other posts, specifically this one
UNICODE Text to String and after a lot of trial and error I figured out what the problem is.
It is this part here:
file_find(fhandle,"test");
The .txt is coded with unicode but since I wrote this "test" manually in the SED it is coded as ASCII I guess. So I am looking for something that technically does not exist in my .txt and therefore it cannot be displayed.
Looks like its not possible to read out Unicode when using
which also makes it impossible to read out specific sections of a .txt
I think