powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Sybase ASA, ASE, IQ [игнор отключен] [закрыт для гостей] / ASE 12.5.3 проблемы с кодировкой
5 сообщений из 5, страница 1 из 1
ASE 12.5.3 проблемы с кодировкой
    #35209042
умник007
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Привет!

На сервере стоит по дефолту cp866, все данные в cp866. Как заставить sybase выдать результат только для данного запроса(возможно выставив кодировку какой-то командой в запросе) в cp1251?
...
Рейтинг: 0 / 0
ASE 12.5.3 проблемы с кодировкой
    #35209432
Фотография MasterZiv
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
умник007 пишет:

> На сервере стоит по дефолту cp866, все данные в cp866. Как заставить
> sybase выдать результат только для данного запроса(возможно выставив
> кодировку какой-то командой в запросе) в cp1251?

На сколько я знаю, возможности такой нет. Это регулируется клиентским приложением.
Posted via ActualForum NNTP Server 1.4
...
Рейтинг: 0 / 0
ASE 12.5.3 проблемы с кодировкой
    #35209692
up
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
set char_convert

enables or disables character set conversion between Adaptive Server and a client. If the client is using Open Client DB-Library release 4.6 or later, and the client and server use different character sets, conversion is turned on during the login process and is set to a default based on the character set the client is using. You can also use set char_convert charset to start conversion between the server character set and a different client character set.

charset can be either the character set’s ID or a name from syscharsets with a type value of less than 2000.

set char_convert off turns conversion off so that characters are sent and received unchanged. set char_convert on turns conversion on if it is turned off. If character set conversion was not turned on during the login process or by the set char_convert command, set char_convert on generates an error message.

If you request character set conversion with set char_convert charset, and Adaptive Server cannot perform the requested conversion, the conversion state remains the same as it was before the request. For example, if conversion is set to off prior to the set char_convert charset command, conversion remains turned off if the request fails.

When the with no_error option is included, Adaptive Server does not notify an application when characters from Adaptive Server cannot be converted to the client’s character set. Error reporting is initially turned on when a client connects with Adaptive Server: if you do not want error reporting, you must turn it off for each session with set char_convert {on | charset} with no_error. To turn error reporting back on within a session, use set char_convert {on | charset} with error.

Whether or not error reporting is turned on, the bytes that cannot be converted are replaced with ASCII question marks (?).
...
Рейтинг: 0 / 0
ASE 12.5.3 проблемы с кодировкой
    #35209698
up
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Синтаксис:

set char_convert {off | on [with {error | no_error}] |
charset [with {error | no_error}]}
...
Рейтинг: 0 / 0
ASE 12.5.3 проблемы с кодировкой
    #35211372
умник007
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
up Мега спасибо!
...
Рейтинг: 0 / 0
5 сообщений из 5, страница 1 из 1
Форумы / Sybase ASA, ASE, IQ [игнор отключен] [закрыт для гостей] / ASE 12.5.3 проблемы с кодировкой
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]