SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Некорректное сохранение текста в файл



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
cbw07
Старший специалист
Старший специалист



Joined: 30 Nov 2007
Posts: 127

PostPosted: Mon Aug 18, 2008 3:48 pm    Post subject: Некорректное сохранение текста в файл Reply with quote

Добрый день, коллеги!
Вот вышел после отпуска, а тут такая проблемка со старой программой нарисовалась.
Я вывожу некоторый текст в файл через CALL FUNCTION 'DOWNLOAD'
Code:

    CALL FUNCTION 'DOWNLOAD'
      EXPORTING
        codepage            = 'IBM'
        filename            = var_file
        filetype            = 'ASC'
      IMPORTING
        act_filename        = act_fname
        act_filetype        = act_ftype
        filesize            = flength
        cancel              = abbrechen
      TABLES
        data_tab            = itab_s
      EXCEPTIONS
        file_open_error     = 01
        file_write_error    = 02
        invalid_filesize    = 03
        invalid_table_width = 04
        invalid_type        = 05
        no_batch            = 06
        unknown_error       = 07.


Текст содержит немецкие умляуты (это когда O, A и U с двумя точками над ними, если кто-то не в курсе).
До вызова функции текст выводится в Message с этими буквами.
В сохраненном файле в тексте вместо этих умляутов какие-то иные кракозябры.
Пробовал менять в функции codepage, на некоторые другие, но не помогло.
Где еще может быть решение проблемы?
Back to top
View user's profile Send private message
cbw07
Старший специалист
Старший специалист



Joined: 30 Nov 2007
Posts: 127

PostPosted: Mon Aug 18, 2008 6:26 pm    Post subject: Reply with quote

проблема решена, нашел нужное значение для codepage
Back to top
View user's profile Send private message
vga
Мастер
Мастер


Age: 170
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Mon Aug 18, 2008 7:19 pm    Post subject: Reply with quote

Для амляутов в windows используется windows-1252
Back to top
View user's profile Send private message Blog Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.