Git Product home page Git Product logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
еще видимо из-за этого: default 'text/html; 
charset=windows-1251'
русский текст получается не читаемый. 
приходит то как 'text/xml; charset=utf-8'

Original comment by [email protected] on 15 Dec 2011 at 8:02

from any-balance-providers.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Это происходит из-за того, что сервер не 
указывает в заголовке ответа кодировку 
контента. Сouldn't parse content-type 'text/xml' указывает, 
что ответ сервера не содержит кодировку. 
Чтобы работать с такими "нехорошими" 
серверами предусмотрена функция 
AnyBalance.setDefaultCharset() 
(http://code.google.com/p/any-balance-providers/wiki/AnyBalanceAPI#setDefaultCha
rset)

Нужно просто перед запросом вызвать 
AnyBalance.setDefaultCharset('utf-8')
Тогда, если сервер не присылает кодировку, 
то будет предполагаться, что результат 
присылается в utf-8

Original comment by [email protected] on 21 Dec 2011 at 12:01

  • Changed state: Started

from any-balance-providers.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Отлично! AnyBalance.setDefaultCharset('utf-8') помог. Теперь 
все работает.
Спасибо.

Original comment by [email protected] on 21 Dec 2011 at 1:25

from any-balance-providers.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Не за что, обращайтесь, если что.

Original comment by [email protected] on 21 Dec 2011 at 1:29

  • Changed state: Done

from any-balance-providers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.