c# - Retrieve information from SVN Repository contains special characters -


i using sharpsvn connect , retrieve information visual svn server c#.

but on svn server, repository have folder name c# , when read folder, exception occurred:

additional information: url 'https://< svnserver >/svn/it/02_shopfloor/c' non-existent in revision 13

i debug , found uri still be:

{https://< svnserver >/svn/it/02_shopfloor/c#} system.uri

how access svn repositories contain special characters?

i had used following nothing changed:

if (lists[i].path.contains("#")) {      path = lists[i].path.replace("#", "\\#"); } else {      path = lists[i].path; } reposss[i] = new uri("https://< svnserver >/svn/it/02_shopfloor/" + path); svnclient.getlist(reposss[i], out listsinfo); //exception occur @ here 

the # schema operator in url. need escape character using uri escape rules. there helper functions on system.uri class , specific scenarios on svntools. escaped character %23 23 hexadecimal value of character.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -