Skip to Content
author's profile photo Former Member
Former Member

Open Dataset error

Please help me,

I load data from text file (.txt) on server, the file used Vietnamese language.

My code :

OPEN DATASET gv_dataset FOR INPUT IN TEXT MODE encoding UTF-8 .
DO.
  READ DATASET gv_dataset INTO it_string-rec.
ENDDO

It's error: " "At the conversion of a text from codepage '4110' to codepage '4102' ".

I changed code:

OPEN DATASET gv_dataset FOR INPUT IN TEXT MODE encoding UTF-16BE.

It's no support (syntax error). How do i do ?

Edited by: T.Nhung on Dec 3, 2011 4:16 AM

Edited by: T.Nhung on Dec 3, 2011 4:17 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2011 at 04:46 AM

    dear friend

    you have some various option.

    opt 1 :

    use utf-32

    opt 2 :

    use function SCP_REPLACE_STRANGE_CHARS

    i.e.

    DATA: data_in TYPE string,

    data_out TYPE string.

    data_in = 'any language'.

    CALL FUNCTION 'SCP_REPLACE_STRANGE_CHARS'

    EXPORTING

    intext = data_in

    IMPORTING

    outtext = data_out.

    WRITE data_out.

    opt 3 :

    ENCODING DEFAULT

    opt 4 :

    use statement

    IGNORING CONVERSION ERRORS.

    hope this helps.

    avirat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2011 at 07:47 AM

    Thanks for all helper

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.