Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

how to read txt file when encoding is Unicode

2007-02-19
2012-08-14
  • Hello! I'm new to ObjectREXX. Please help!
    I'm trying to read txt file, encoding is Unicode. I tried to use SysFromUnicode function to map it to ANSI but had 'incorrect call to subroutine' error. Seems like a syntax problem. What am I doing wrong? There is my code:

    bkrin=.stream~new(DSQQW_PROC_OUTPUT)
    rec =bkrin~linein
    call SysFromUnicode rec, ACP, recout.
    say recout.!TEXT

    Thanks