Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange character set - xml cannot be decoded #341

Closed
MarcusCalidus opened this issue Feb 22, 2020 · 2 comments
Closed

Strange character set - xml cannot be decoded #341

MarcusCalidus opened this issue Feb 22, 2020 · 2 comments

Comments

@MarcusCalidus
Copy link

MarcusCalidus commented Feb 22, 2020

Could you please hint me to what I am doing wrong?
It looks like a codepage error or something.

using "ews-javascript-api": "^0.10.0",

authenticating with new XhrApi().useNtlmAuthentication(user, password)

upon calling exch.ResolveName('marco')

I get the following error

[1] [1] [xmldom warning]        unclosed xml attribute 
[1] [1] @#[line:1,col:164]
[1] [1] [xmldom error]  element parse error: Error: invalid tagName:[^�w 
[1] [1] @#[line:1,col:274]
[1] [xmldom error]      element parse error: Error: attribute equal must after attrName 
[1] [1] @#[line:2,col:267]
[1] [xmldom warning]    attribute "WO" missed value!! "WO" instead!! 
[1] [1] @#[line:2,col:294]
[1] [1] [xmldom warning]        unclosed xml attribute 
[1] [1] @#[line:2,col:294]
[1] [xmldom error]      element parse error: Error: invalid tagName:�:��}^�n��?x� 
[1] [1] @#[line:2,col:329]
[1] [1] [xmldom error]  element parse error: Error: invalid tagName:cw;6�} 
[1] [1] @#[line:2,col:422]

Raw XML fed into EwsXmlReader(rawXML) looks like this:

��`I�%&/m�{�J�J��t�`$ؐ@������iG#)�*��eVe]f@�흼��{���{���;�N'���?\fdl��J�ɞ!���?~|?"��ez��MQ-?�hw��Q�/�լX^|�Ѻ=�>���8z�<:]^�e��Sj�l5�}4o�գ�w��<_d͘>o�l5�ꋻ��n�o���;�fy}�x��u^S�?)]�-ϫ��+��p���b���4y�.�ً�b�����a���G�}�'�vv��;��������N�Y~��:��~|���n�#_�m��j������'��곏|��-��z�7ϳ��wg�W�g��:����"+�I�����t�X����]�=H�J=��������=��jB����ֿ礨��4���-��ׂ�跢N�o��G��x�m��2����V�����{8��c�"[�E;�A��nt���G�W��ʷ��Ƹ^$��������1���j�׷dGm����}7��Z�hL��I�l�i���U�,=#�z|���㧯~���勧_�?�S�_>�h_<=���������ٻ�o.���f6�����/�<��WO>?���W�>y������^�^��"������s�<�:��}^�n��?x���p�S�ݷ�?x�N�9}I�
                                                                                                                |�:���Co��Qz���ʯ?���'�'��ɾ:��/���ySU��r���y�����?����2<cw;6�}7�����x������z��T
                                                                                                                                                                                              ��
@gautamsi
Copy link
Owner

check this out - ewsjs/xhr#9

@MarcusCalidus
Copy link
Author

thank you. Setting exch.AcceptGzipEncoding = false; did help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants