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

Question: object name can be non-ascii? #288

Open
yxiang92128 opened this issue Sep 11, 2019 · 2 comments
Open

Question: object name can be non-ascii? #288

yxiang92128 opened this issue Sep 11, 2019 · 2 comments
Labels

Comments

@yxiang92128
Copy link

object name is defined as utility::string_t
on a Linux system,
cpprest/details/basic_types.h defines utility::string_t as
//
// On POSIX platforms, all strings are narrow
//
typedef char char_t;
typedef std::string string_t;

We are testing downloading some object with object name in Kanji character and Emojis and it reports errors as " The object <😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊😊> in bucket <max not be downloaded failed with http code=<404>

Can you please confirm if it works for wide character objname through the sdk? And if so, what do I need to do in order to get this call to work properly:

block_blob = container.get_block_blob_reference(obj_name);

thanks,

Yang

@Jinming-Hu
Copy link
Member

Usually the sdk should work with emojis if you set locale to UTF-8.

I just wrote a piece of code to test on Linux,

utility::string_t blob_name = "test😊.txt";
azure::storage::cloud_block_blob blob = blob_container.get_block_blob_reference(blob_name);

and this is what it looks like on Portal,

1

Can you provide your environment details so that I can reproduce the issue?

@Jinming-Hu
Copy link
Member

We're going to close this issue because of inactivity, feel free to reopen it if you have any further questions.

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

No branches or pull requests

2 participants