Comments (4)
еще видимо из-за этого: 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.
Это происходит из-за того, что сервер не
указывает в заголовке ответа кодировку
контента. С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.
Отлично! AnyBalance.setDefaultCharset('utf-8') помог. Теперь
все работает.
Спасибо.
Original comment by [email protected]
on 21 Dec 2011 at 1:25
from any-balance-providers.
Не за что, обращайтесь, если что.
Original comment by [email protected]
on 21 Dec 2011 at 1:29
- Changed state: Done
from any-balance-providers.
Related Issues (20)
- Patch for /trunk/ab-municipal-kvartplata24/main.js HOT 1
- Провайдер: MobileTeleCom HOT 1
- Column width in widget HOT 2
- МТС: Объем израсходованного трафика на Коннект-4 HOT 2
- Patch for /trunk/ab-municipal-akadem-ekat/main.js HOT 1
- Patch for /trunk/ab-municipal-khvschool/main.js HOT 2
- Patch for /trunk/ab-municipal-tszhportal/preferences.xml HOT 1
- [deleted issue]
- issue #255 удалено без объяснений HOT 1
- Patch for /trunk/ab-internet-maglan/main.js
- Patch for /trunk/ab-internet-maglan/anybalance-manifest.xml
- Провайдер: Айпистрим.ру HOT 1
- Patch for /trunk/ab-cell-mts-by/main.js
- Patch for /trunk/ab-cell-mts-by/preferences.xml
- [deleted issue]
- Patch for /trunk/ab-internet-wbt/main.js
- ab-affiliate-oriflame-by_1715 HOT 1
- [deleted issue]
- [deleted issue]
- NetBerry (Белоруссия) , изменения на сайте биллинга HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from any-balance-providers.