G G.Andrey Denisov New Member Aug 4, 2008 #1 FileOpen(c1,"d:\adif_log.adi",cWrite,,cASCII) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается следующее - test-???? ------------------------------------------------- FileOpen(c1,"d:\adif_log.adi",cWrite) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается: я╗┐test-╤В╨╡╤Б╤В Как записать в файл русские буквы??? Помогите:sign0085:
FileOpen(c1,"d:\adif_log.adi",cWrite,,cASCII) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается следующее - test-???? ------------------------------------------------- FileOpen(c1,"d:\adif_log.adi",cWrite) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается: я╗┐test-╤В╨╡╤Б╤В Как записать в файл русские буквы??? Помогите:sign0085:
A Aspire89 Member Licensed User Aug 4, 2008 #2 Попробуй открой adif_log.adi в блокноте и сохрани в кодировке UTF-8 или UTF-16, должно помочь.
G G.Andrey Denisov New Member Aug 7, 2008 #3 Наобходимо писать в кодировке Win Как решить данный вопрос?
G G.Andrey Denisov New Member Sep 5, 2008 #4 Кто-нибудь поможет или нет? Как записать текст(русский) в файл в кодировке win1251 ?
Sergey Kravchenko Active Member Licensed User Longtime User Sep 5, 2008 #5 G.Andrey Denisov said: Кто-нибудь поможет или нет? Как записать текст(русский) в файл в кодировке win1251 ? Click to expand... http://www.b4x.com/forum/questions-help-needed/2617-other-languages.html http://www.b4x.com/forum/questions-help-needed/2411-character-encoding-code-pages.html Надо создать бинарный файл и указать кодировку. Нужна версия 6.30
G.Andrey Denisov said: Кто-нибудь поможет или нет? Как записать текст(русский) в файл в кодировке win1251 ? Click to expand... http://www.b4x.com/forum/questions-help-needed/2617-other-languages.html http://www.b4x.com/forum/questions-help-needed/2411-character-encoding-code-pages.html Надо создать бинарный файл и указать кодировку. Нужна версия 6.30
N nightkrol Member Oct 5, 2008 #6 G.Andrey Denisov said: FileOpen(c1,"d:\adif_log.adi",cWrite,,cASCII) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается следующее - test-???? ------------------------------------------------- FileOpen(c1,"d:\adif_log.adi",cWrite) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается: я╗┐test-╤В╨╡╤Б╤В Как записать в файл русские буквы??? Помогите:sign0085: Click to expand... Элементарно FileOpen(c1,"d:\adif_log.adi",cWrite,,cunicod) FileWrite(c1,"test-тест") FileClose(c1) бинарный файл здесь не нужен
G.Andrey Denisov said: FileOpen(c1,"d:\adif_log.adi",cWrite,,cASCII) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается следующее - test-???? ------------------------------------------------- FileOpen(c1,"d:\adif_log.adi",cWrite) FileWrite(c1,"test-тест") FileClose(c1) В файл d:\adif_log.adi записывается: я╗┐test-╤В╨╡╤Б╤В Как записать в файл русские буквы??? Помогите:sign0085: Click to expand... Элементарно FileOpen(c1,"d:\adif_log.adi",cWrite,,cunicod) FileWrite(c1,"test-тест") FileClose(c1) бинарный файл здесь не нужен