Good day. There is a task to convert the names of cities written in Cyrillic into HEX format, but it is necessary to convert as much as microsoft wants. Then, using the created hexes, I will create qds files for searching in AD. There is such a code
$a = "Хабаровск"; $b = $a.ToCharArray(); Foreach ($element in $b) {$c = $c + [System.String]::Format("{0:X}" + "0", [System.Convert]::ToUInt32($element))} $c But it gives 4250430043104300440043E04320441043A0 such value. And if I save the search request in AD in the qds file, then there is a value in the place where the city name is 250430043104300440043E04320441043A04000005 , at the end of the zeroes there is a cheksumma that is understandable. It seems to be the same, but what is the 4th at first, is the hex from the length of the string coming, what? at the end comes the hex from stringlenght+1 . Has anyone encountered such a task? I apologize if it is weakly stable, even I don’t catch up with how to edit it normally