Onedrive search Chinese Encoding

Hi there,

I have a Scenario where I want to search a certain sub-folder name inside a parent folder. The sub-folder im searching is in Chinese, any idea how to encode it so it would return results?

The module works fine in English, but if I search in Chinese it doesn’t return results? There should be some way to encode it but im not sure from what (UTF8?) to what?

:blush:

Try encodeURL. This converts the UTF-8 extended character set to ASCII.

Screenshot_2024-01-15_110149

Screenshot_2024-01-15_110102

3 Likes

Hi @samliew Not only it worked, but also the rest of the scenario is now working ! :partying_face: :trophy: Not sure how because I tried yesterday to send the Ascii value manually just to test and it wasn’t working - so this is great !!! :blush: :100: :boom:

2 Likes

No problem, glad I could help! :smiley:

2 Likes

Opps, was happy too fast :face_with_peeking_eye: and forgot that some of the modules had hard-coded values so it completed the process, but in fact couldn’t search/find folders in Chinese, I might open another thread of the question of how to search Chinese in OneDrive.

image

IF I run the same with English (and without encoding) it finds the right folders…