Comments (18)
I will look into it tomorrow, but I will need some of your help for sure. I am currently getting slowly better into that things ;-)
from abaplint-sci-client.
this is when calling the API provided by https://github.com/abaplint/abaplint-sci-server ?
from abaplint-sci-client.
yes, I am running the API in a docker container on our internal linux server.
from abaplint-sci-client.
is the source ABAP system running unicode?
from abaplint-sci-client.
no. like I said the system is non-unicode. We will switch to unicode system in the 1st quarter of next year
from abaplint-sci-client.
okay, I missed that part 😄
as far as I remember, there is some way to set the encoding by the http client, need it somewhere around
https://github.com/abaplint/abaplint-sci-client/blob/master/src/zcl_abaplint_backend_api_agent.clas.abap#L131
from abaplint-sci-client.
iv_payload
must be converted to UTF8, and then use set_data
instead, plus set charset http header field
from abaplint-sci-client.
found this
https://codezentrale.de/abap-http-client-anfrage-von-xml-daten/
from abaplint-sci-client.
I think, header field could be set by
o_client->request->set_header_field( name = 'Content-Type'
value = 'text/xml; charset=utf-8' ).
but, how to convert iv_payload
to UTF8?
from abaplint-sci-client.
call ZCL_ABAPGIT_CONVERT=>STRING_TO_XSTRING_UTF8
from abaplint-sci-client.
I should only convert the contents of iv_payload
before building the json, right?
I could do it in ZCL_ABAPLINT_BACKEND->BASE64_ENCODE
?
from abaplint-sci-client.
this not works for now:
API request failed [500]: [abaplint] JSON5: invalid
character '�' at 1:1 ()
from abaplint-sci-client.
whats your code in the client?, it should be something like,
IF iv_method = 'POST' AND iv_payload IS NOT INITIAL. " OR PUT ... maybe in future
li_client->request->set_data( ZCL_ABAPGIT_CONVERT=>STRING_TO_XSTRING_UTF8( iv_payload ) ).
li_client->request->set_header_field( name = 'Content-Type' value = 'application/json; charset=utf-8' ).
ENDIF.
from abaplint-sci-client.
but yea, hmm, there might be multiple places that needs changing
from abaplint-sci-client.
see #232
from abaplint-sci-client.
will try it out thanks a lot
from abaplint-sci-client.
seems to work now.
It get LINT_* errorcodes now.
Thank you very much!
from abaplint-sci-client.
fixed, closing
from abaplint-sci-client.
Related Issues (20)
- Service Implementation Leads to Contains Unknown Lookup Error HOT 12
- Documentation, general setup and few scenarios
- Dependency Repo update fails with false positive on inactive table
- Replace ajson with abapgit_ajson HOT 2
- Dump in Class ZCL_ABAPLINT_BACKEND after Pull from REPO HOT 2
- Wrong error title in eclipse HOT 9
- Certificate Error HOT 7
- SAP Dependency code generation fails with DUPKEY HOT 4
- Dump in parallel mode when using SCI DBSQL_DUPLICATE_KEY_ERROR CX_SY_OPEN_SQL_DB HOT 4
- option to set only singlefile rules
- Check variant maintenance gets stuck HOT 1
- Fallback/default configuration
- No error if abaplint instance not available HOT 1
- option to run without dependency resolution
- No Issues found with large Function Groups HOT 3
- Syntax error in program "ZCL_ABAPLINT_BACKEND HOT 3
- `CX_SY_REF_IS_INITIAL` when trying to create dependencies in git HOT 2
- Circular reference between objects yields in objects being skipped by abaplint HOT 2
- zabaplint_dependencies: Function table parameter references are not selected for dependency repository HOT 1
- zabaplint_dependencies: Function table parameter references are not selected for dependency repository 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 abaplint-sci-client.