Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Screening /
  • World-Check One /

For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

avatar image
REFINITIV
Question by vitor.valerio · Aug 15, 2017 at 11:06 AM · world-checkworld-check-onepilot-environment

Please help me with a question about WC1 API and special characters

Hello, I was testing our implementation in Java with a simple request to the Pilot environment, using a POST request to the uri (rms-world-check-one-api-pilot.thomsonreuters.com/v1/cases) and was getting a response back with the unauthorized 401 error when I sent a name with special character. But this error only happend when I sent a name with special character like in the example:

{ ... "providerTypes":["WATCHLIST"], "name":"Tést" }

If I send a company name without special character, the test works. Testing in postman it works even with special character, but I can't see why. Thanks Vitor

People who like this

0 Show 1
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
vitor.valerio · Aug 15, 2017 at 11:11 AM 0
Share

I set the content length like this:
"return text.getBytes().length;"

and returned the same value of postman

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by brian.bourgault · Aug 15, 2017 at 02:45 PM

Hi @vitor.valerio,

You must ensure your code is utf-8 and the byte count is encoded.

var contentLength = unescape(encodeURIComponent(content)).length;

Hope this helps,
Brian

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by saha.shilpi1 · Aug 16, 2017 at 09:13 AM

Hi @vitor.valerio,

In java you can handle special character using below line of code.

String value = new String(jsonBody.getBytes("UTF-8"))

The value of jsonBody is given below.

String jsonBody = "{\"secondaryFields\":[],\"entityType\":\"INDIVIDUAL\",\"customFields\":[],\"groupId\":\"418f28a7-b9c9-4ae4-8530-819c61b1ca6c\",\"providerTypes\":[\"WATCHLIST\"],\"name\":\"Tést\"}";

Hope this helps.

Thanks,

Shilpi

Comment
brian.bourgault

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

WC1 Pilot Environment Postman JSON file import resulted in an error in Postman. Any thoughts?

accessing pilot environment

404s in WC1 Pilot Environment

rms-world-check-one-api-pilot.thomsonreuters.com IP change

The API client is making too many concurrent requests, and some are being throttled (429)

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges