azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

unicode is not supported in ResourceGroupOperations

Open xizhousheng opened this issue 10 years ago • 5 comments

ResourceGroupOperationsImpl

if (Pattern.matches("^[-\w._]+$", resourceGroupName) == false) { throw new IllegalArgumentException("resourceGroupName"); }

'w' indicates only ascii codes and you may have to involve the code pages of non-ascii in regex if you'd like to search them.

The code example involves the most of Unicode characters: boolean valid = Pattern.matches("^[\u0080-\u9FFF_\uFB00-\uFFFDh\w._]+$", "表ポあA中Œé鷗停B逍Üßàùªñ");

xizhousheng avatar Oct 27 '16 07:10 xizhousheng

👍 Thanks for the feedback. I didn't even know unicode characters are allowed!

jianghaolu avatar Oct 27 '16 07:10 jianghaolu

ppl working with resource group name in East-Asia and West-Euro sometimes:)

xizhousheng avatar Oct 27 '16 07:10 xizhousheng

@jianghaolu is this issue still relevant?

praries880 avatar Dec 08 '18 00:12 praries880

@ChenTanyi could you help take a look to see whether this issue is still existing?

yaohaizh avatar Oct 21 '19 02:10 yaohaizh

I did not find ResourceGroupOperations, maybe it had been changed. And I test it successful to create a resource group with UTF-8 characters. I think it has been fixed.

ChenTanyi avatar Oct 21 '19 06:10 ChenTanyi