M
M
Mike2016-08-15 14:15:32
XPath
Mike, 2016-08-15 14:15:32

How to use Cyrillic in the xpath of the translate() function?

Can you tell me how it is possible to change to Cyrillic in translate()? With the English alphabet, it turns out simply, but I don’t understand how to add Russian letters here:

translate(., 'ABCDEFGHJIKLMNOPQRSTUVWXYZ', 'abcdefghjiklmnopqrstuvwxyz')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2017-09-28
@dillix

More or less like this:

translate(//span/text(), 'ABCDEFGHJIKLMNOPQRSTUVWXYZАБВГДЕЁЖЗИКЛМНОПРСТУФХЦЧШЩЭЮЯ', 'abcdefghjiklmnopqrstuvwxyzабвгдеёжзиклмнопрстуфхцчшщэюя')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question