libpq has a PQclientEncoding() function that takes a connection object. However, the client encoding is, in some cases, a property of the result object. For instance, if your client_encoding changes, but you keep the result object around, you have no way to determine later what encoding the results are in. The result object already saves the client_encoding. Should an accessor be provided? Regards,Jeff Davis
Jeff Davis wrote: > libpq has a PQclientEncoding() function that takes a connection object. > > However, the client encoding is, in some cases, a property of the result > object. For instance, if your client_encoding changes, but you keep the > result object around, you have no way to determine later what encoding > the results are in. > > The result object already saves the client_encoding. Should an accessor > be provided? That'd certainly save libpqxx the trouble of lugging a copy around. Jeroen
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера