【问题标题】:List of charecters i Sharpoint Online - æøåSharepoint Online 中的字符列表 - æøå
【发布时间】:2021-01-07 06:06:37
【问题描述】:

我正在制作一个列表以使用 PowerShell 和 Connect-PnPOnline 从共享点在线列表中获取数据。一切正常,除了我是丹麦人,找不到特殊丹麦人charekters 的代码:“æøå”。我知道“”(空格)是“x0020”,但我找不到完整列表,或者至少找不到我的树“æøå”,

希望您能提供帮助,因为谷歌让我失望了(或者更有可能,我没有找到正确的方法)。

编辑:我找到了这个列表,但没有 æøå:https://realsharepoint.wordpress.com/2011/07/22/sharepoint-escape-characters/

【问题讨论】:

    标签: powershell sharepoint sharepoint-online


    【解决方案1】:

    您可以让 PowerShell 为您解决这个问题 :)

    "æøå".ToCharArray().ForEach({
      '\x{0:X4}:"{1}" - \x{2:X4}:"{3}"' -f +$_,$_,+[char]::ToUpper($_),[char]::ToUpper($_)
    })
    

    在这里,我们遍历每个字符并打印它的底层 unicode 值(char 前面的一元 + 将其转换为整数),然后对其大写变体执行相同的操作,其结果将如下所示:

    \x00E6:"æ" - \x00C6:"Æ"
    \x00F8:"ø" - \x00D8:"Ø"
    \x00E5:"å" - \x00C5:"Å"
    

    【讨论】:

    • 嗨,Mathias 感谢您的回复。 SharePoint online 不使用 unicode(这很令人沮丧),他们使用自己的 char-code.. :(
    • @ThomasRepsdorph 我 99% 他们会重叠 - 你试一试了吗? (例如,用x00C6 代替Æ
    • 我已经尝试了以下,也许我做错了什么? $Loesning = if ($itemFields.L_x00F8_sning) { $itemFields.L_x00F8_sning.LookupValue } else { '' }
    • 您确定这就是属性名称吗?试试$itemFields |Get-Member L*sning验证
    • 我收到以下错误:表达式或语句中出现意外标记“sning.LookupValue”。在 \\nas-groups\groups\sgdrijob\alm\pn0\abr\dw\scripts\KuberDumpToDB_v15.ps1:87 char:78 + ... ($itemFields.Lsning) { $itemFields.L i>sning.LookupValue } else { '' } + ~~~~ 不起作用:$Loesning = if ($itemFields.Lsning) { $itemFields.Lsning.LookupValue } else { ' ' } 作品: $Kubeejer = if ($itemFields.Kubeejer) { $itemFields.Kubeejer.Email } else { '' } 感谢您帮助我 :)
    猜你喜欢
    • 2020-09-27
    • 1970-01-01
    • 2020-12-27
    • 1970-01-01
    • 2020-04-11
    • 2014-01-06
    • 2020-06-05
    • 2016-05-15
    • 2017-07-02
    相关资源
    最近更新 更多