('a' .. 'z') and other usage methods available very conveniently.
Is there an equivalent or some other range method for displaying non-english alphabets? (example of the German alphabet (umlaut characters), Turkish alphabet)
UPDATEMy use case:I generate random strings from alphabets. Therefore, I need all the characters in the alphabet before randomizing and re-attaching them to the specified length. In English I can do: ('a'..'z').to_a.shuffle[0, length].join.capitalize. I want to do the same for other alphabets.
('a'..'z').to_a.shuffle[0, length].join.capitalize
. , , "o ". :
▶ 'ö'.codepoints #⇒ [ # [0] 246 # ] ▶ 'ö'.codepoints #⇒ [ # [0] 111, # [1] 776 # ]
, ? , , ISO-8859-1, - "o" + . icu library, ( .)
ISO-8859-1
UPD @NeilSlater , , , -, :
[*('a'..'z'), 'ö', 'ä', 'ü']
Source: https://habr.com/ru/post/1605696/More articles:Заполнение вкладки и клавиши со стрелками не работают в GHCI в Git Bash - windowsDifference between worksheets and obj worksheet - vbaWhat is the difference between MD and MKDIR? - batch-fileNeed a comma to separate SamAccountName from groups - powershellHow to reload jQuery plugin (slider / carousel)? - javascriptSave PDF file using Dompdf - phpcombine and replace values in two data.tables - rSingleton pattern: static or static ending? - javaAndroid video hardware accelerator for H264 stream - androidHow to save changed data in the Curve Fitting Toolbox? - matlabAll Articles