Regarding special characters and spaces in APIs
Posted: Tue Nov 07, 2023 2:01 am
Hello Team,
I am using Patient's simple GET API: "GET /patients/Simple?LName=smi&FName=eter&Birthdate=1976-05-24"
While incorporating this into my Java code, I encountered a scenario where there was a space in the first name. My code automatically converted that space into '%20', which resulted in incorrect results. Upon retaining the space as it is, the API worked as expected.
Could you please provide some insight into how different scenarios, especially involving spaces and special characters, are managed? This information will help me write bug-free and error-resistant code.
Thanks and regards,
GV-Opendental
I am using Patient's simple GET API: "GET /patients/Simple?LName=smi&FName=eter&Birthdate=1976-05-24"
While incorporating this into my Java code, I encountered a scenario where there was a space in the first name. My code automatically converted that space into '%20', which resulted in incorrect results. Upon retaining the space as it is, the API worked as expected.
Could you please provide some insight into how different scenarios, especially involving spaces and special characters, are managed? This information will help me write bug-free and error-resistant code.
Thanks and regards,
GV-Opendental