Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/313.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 当我反序列化时,这个字符串发生了什么?_C#_Asp.net_Asp.net Web Api_Json.net - Fatal编程技术网

C# 当我反序列化时,这个字符串发生了什么?

C# 当我反序列化时,这个字符串发生了什么?,c#,asp.net,asp.net-web-api,json.net,C#,Asp.net,Asp.net Web Api,Json.net,我正在使用Json.net对字符串进行反序列化。它开始于……的生活 免费冥想和瑜伽-晚上7:30开始。星期三。2015年1月14日至3月25日 下线后: _json = JsonConvert.DeserializeObject(jsonString,new JsonSerializerSettings()); 变成: 免费冥想和瑜伽–2015年1月14日至3月25日星期三下午7:30开始 (请注意破折号所在的有趣符号) 我还使用了: JObject.Parse(jsonString); 有人

我正在使用Json.net对字符串进行反序列化。它开始于……的生活

免费冥想和瑜伽-晚上7:30开始。星期三。2015年1月14日至3月25日

下线后:

_json = JsonConvert.DeserializeObject(jsonString,new JsonSerializerSettings());
变成:

免费冥想和瑜伽–2015年1月14日至3月25日星期三下午7:30开始

(请注意破折号所在的有趣符号)

我还使用了:

JObject.Parse(jsonString);

有人能告诉我Json.net对字符串做了什么,以及如何禁用它吗

更新:

这是我正在反序列化的json:

{
utc_offset: 0,
venue: {
country: "gb",
city: "Guildford, GU1 4LH",
address_1: "Ward Street",
name: "The Guildford Institute",
lon: -0.572187,
id: 23518868,
lat: 51.237408,
repinned: false
},
headcount: 0,
distance: 24.1162166595459,
visibility: "public",
waitlist_count: 0,
created: 1418084960000,
maybe_rsvp_count: 0,
description: "<p>Hello there! We'd like to welcome you to our FREE weekly Sahaja Yoga meditation meetings hosted by Paddy, Mario &amp; Justyn which take place at the </p> <p><b>The Guildford Institute, Ward Street, Guildford, GU1 4LH – </b></p> <p>on <b>Wednesday evenings at 7.30pm - 9.00pm for ten weeks between 14th January to 25th March<br/></b></p> <p>With Sahaja Yoga Meditation we generally sit on chairs to achieve Yoga, effortlessly &amp; spontaneously. As such no Asanas (exercises) are required, no mat or special clothing. </p> <p><br/>All across the globe, many are seeking new sources of energy. Meanwhile, the most transformative energy of all is hiding in plain sight, within us. It's natural, sustainable, and infinitely renewable. It's called inner kundalini energy. And everyone already has it — everyone!. </p> <p>It is often likened to an inner feminine or motherly energy which automatically knows about us and what is needed to help us restore balance and harmony within our subtle being. It works spontaneously, effortlessly, organically and cannot be paid for.</p> <p>Sahaja Yoga Meditation is a simple time-honoured technique that lets you tap into that energy and harness its power to become better balanced and better connected to yourself — emotionally, physically, mentally and spiritually.</p> <p>If you're having trouble juggling the challenges in your life, Sahaja Yoga Meditation might well help you manage stress, master your emotions and find solutions to your problems. You may enjoy better health, better focus, and a deeper understanding of the universe and your place in it.</p> <p>Meditation is not just for mystics and monks. Sahaja Yoga meditation is for everyone. Anyone can do it. It's that easy. But with the Sahaja Yoga experience, you'll quickly realise, it isn't your typical Meditations 'R Us type class. It's much more than just feeling peaceful and relaxed. Sahaja Yoga Meditation has many layers, varied and deep. Explore at your own pace, in your own way. Our volunteer experts are always available to help.</p> <p>Ready to plug into your inner energy? A Sahaja Yoga Meditation class is a great way to start. A few minutes of your life may be all it takes to connect to your inner energy and light the path to lifelong transformation. Sahaja Yoga is more than a temporary solution or quick relief — it is a journey, rather than a destination. It's all about energy — guaranteed pure and carbon neutral. You can never have too much of it.</p> <p>The best part? All classes are free. No strings, no catch.<br/>Everyone is welcome. Bring a friend, bring your self — all are welcome.</p>",
event_url: "http://www.meetup.com/Free-Mediation-Yoga-Guildford/events/220350149/",
yes_rsvp_count: 10,
name: "Free Meditation & Yoga – Start at 7.30pm. Wednesdays. 14 Jan to 25th Mar 2015",
id: "nzzzclytfbxb",
time: 1426707000000,
updated: 1425311570000,
group: {
join_mode: "open",
created: 1418084432000,
name: "Free Mediation & Yoga Guildford",
group_lon: -0.5699999928474426,
id: 18241268,
urlname: "Free-Mediation-Yoga-Guildford",
group_lat: 51.2400016784668,
who: "Members"
},
status: "upcoming"
}
{
utc_偏移量:0,
地点:{
国家:“gb”,
城市:“吉尔福德,GU1 4LH”,
地址1:“沃德街”,
名称:“吉尔福德学院”,
lon:-0.572177,
身份证号码:23518868,
拉脱维亚:51.237408,
雷宾尼德:错
},
人数:0,
距离:24.116216595459,
能见度:“公众”,
等待名单\u计数:0,
创建日期:1418084960000,
也许计数:0,
说明:"您好!我们欢迎您参加由Paddy、Mario和Justyn主持的每周Sahaja瑜伽冥想免费会议,该会议于1月14日至3月25日期间的周三晚上7:30-9:00在Guildford Ward Street Guildford Institute举行,为期十周,地点为Guildford,Guildford,Guildford 4LH–

,时间为10周编辑:我们通常坐在椅子上轻松地、自发地练习瑜伽。因此,没有体式(练习)不需要垫子或特殊衣物。


在全球各地,许多人都在寻找新的能源。与此同时,最具变革性的能源隐藏在我们的内心深处。它是自然的、可持续的、无限可再生的。它被称为内昆达里尼能源。每个人都已经拥有了它——每个人都有!

它是通常被比喻为一种内在的女性或母亲的能量,它自动了解我们,以及帮助我们在我们微妙的存在中恢复平衡与和谐所需要的东西。它自发地、毫不费力地、有机地工作,而且不需要付费。

霎哈嘉瑜伽冥想是一种简单的久负盛名的技术,它让你可以利用这种能量利用它的力量,在情感、身体、心理和精神上更好地平衡和联系自己。

如果你在应付生活中的挑战时遇到困难,萨哈嘉瑜伽冥想可能会帮助你管理压力,控制情绪,找到解决问题的方法。你可能会享受更好的健康,更好地专注,更深入地理解宇宙和你在其中的位置。

冥想不仅仅是为神秘主义者和僧侣而设。萨哈嘉瑜伽冥想是为每个人而设的。任何人都可以做到。这很容易。但有了萨哈嘉瑜伽体验,你会很快意识到,这不是你典型的冥想课程。它不仅仅是感觉平和而放松。萨哈嘉瑜伽冥想有很多层次,多种多样且深入。以你自己的速度,以你自己的方式进行探索。我们的志愿者专家随时可以提供帮助。

准备好插入你的内在能量了吗?萨哈嘉瑜伽冥想课程是一个很好的开始。几分钟的生活可能就是连接你的小旅馆所需的全部时间能源和光是通向终生变革的道路。Sahaja Yoga不仅仅是一个暂时的解决方案或是一个快速的解脱——它是一个旅程,而不是一个目的地。它都是关于能量的保证,纯粹的和碳中性的。你永远也不会有太多的。

< P>最好的部分。所有的类都是免费的。没有字符串,没有捕获。< BR/>每个人都是Welc。ome.带上朋友,带上你自己-欢迎所有人。

“, 事件url:“http://www.meetup.com/Free-Mediation-Yoga-Guildford/events/220350149/", 是的,数量:10, 名称:“免费冥想和瑜伽-于2015年1月14日至3月25日星期三晚上7:30开始”, id:“nzzzclytfbxb”, 时间:1426707000000, 更新:1425311570000, 组:{ 加入模式:“打开”, 创建日期:1418084432000, 名称:“自由调解与瑜伽吉尔福德”, 组长:-0.569999928474426, 身份证号码:18241268, urlname:“自由调解瑜伽吉尔福德”, 组别:51.2400016784668, 世卫组织:“成员” }, 状态:“即将到来” }
可能是unicode问题。
-
很可能是ndash或mdash,您将其显示为非unicode字符。这不是json做的,是您的输出环境被告知在字符集X中显示字符串,但字符串实际上在字符集Y中。那么如何修复它呢?这在windows 7和windows server.Ca上都发生过n你确切地展示了你在反序列化什么?我在问题中做了。反序列化后,它以一个-开始,然后变成一个-。对不起,这不清楚吗?正如@MarcB所说,这是你的输入。如果我将你的json粘贴到一个十六进制编辑器中,我可以看到破折号,在十六进制
E280 93
(根据而不是你期望的普通短跑的
2d
。这是一个