来自地狱的弦乐 [英] Strings from hell

查看:74
本文介绍了来自地狱的弦乐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我希望有人可以指出我正确的方向,或者更好

仍然,帮我一个代码片段:)


我在字符串中有以下文字:


" =?utf-8?B?UmHimaXDr + KBv2cgIEzimYLimYDimatpzrU =?="


我想将它转换为可显示的字符,如下所示:


Ra?ving L ??? ie


I知道我会丢失不可显示的字符,这正是我想用输入文字做的事情,但我不知道该怎么做。任何人都可以给我一些关于如何实现这个目标的建议吗?我会非常感激,因为我是新手而且这让我难以忍受了两天。


我同时拥有.NET 2003和.NET 2005,但更喜欢在2005年工作,如果那个
有帮助。

解决方案



所以你基本上只想显示某些ASCII值,所以你不能

使用chr。


把字符串放在循环中然后做


foreach(char c in s)

....打印值<> n和n1


Harold Skeggs写道:

你好,我希望有人能指出我正确的方向,或者更好
,帮我一个代码片段:)

我在字符串中有以下文字:

" =?utf-8?B?UmHimaXDr + KBv2cgIEzimYLimYDimatpzrU =?=

我想将它转换为可显示的字符,如下所示:

Ra?ving L ??? ie

我知道我会丢失不可显示的字符,而这正是我想用输入文字做的事情,但我不知道该怎么做。有人可以给我一些关于如何实现这个目标的建议吗?我会非常感激,因为我是新手,这让我难以忍受了两天。

我有.NET 2003和.NET 2005,但更喜欢工作在2005年,如果那个
有帮助。



" John A. Bailo" < JA ***** @ texeme.com>在留言中写道

新闻:c4 ******************** @ speakeasy.net

所以你基本上想要只显示某些ASCII值,所以你不能使用chr。

把字符串放在一个循环中并执行

foreach(char c in s )
....打印值<> n和n1


嗯?


你如何建议你的代码翻译字符串

" ?= UTF-8乙UmHimaXDr + KBv2cgIEzimYLimYDimatpzrU = ="????;进入正确的Ra?ving

L ??? ie?


你是一个使用linux的白痴还是什么? Sheesh。

Harold Skeggs写道:

你好,我希望有人可以指出我正确的方向,或者更好地帮助我代码片段:)

我在字符串中有以下文字:

" =?utf-8?B?UmHimaXDr + KBv2cgIEzimYLimYDimatpzrU =?="

我想将它转换为可显示的字符,如下所示:

Ra?ving L ??? ie

我知道我会失去非 - 可显示的角色,这正是我想用输入文字做什么但我不知道怎么做。
任何人都可以给我一些关于如何去做的建议实现那个目标,好吗?我会非常感激,因为我是一个新手,这已经让我感到难过了两天。我有.NET 2003和.NET 2005,但更喜欢
在2005年工作,如果
有帮助。



我也不能理解你的问题,

但是如果你没有发布VB

和VB,它会有所帮助。净。具有dotnet的组适用于

..Net。你的帖子列表中的第一组是VB6

及以下。


-
ma ********** @ mindXXspring.com

(删除Xs以获取回复电子邮件。)

Harold Skeggs< no.spam.for.me@thanks>在消息中写道

news:dl ********** @ pita.alt.net ...

" John A. Bailo" < JA ***** @ texeme.com>在消息中写道
新闻:c4 ******************** @ speakeasy.net

所以你基本上只希望显示某些ASCII值,所以你不能使用chr。

把字符串放在一个循环中然后做一个foreach(char c in s)
....打印值<> n和n1
嗯?

你如何建议你的代码翻译字符串
" =?utf-8?B?UmHimaXDr + KBv2cgIEzimYLimYDimatpzrU =?="进入正确的



Ra?ving L ??? ie?

你是一个使用linux的白痴还是什么? Sheesh。

Harold Skeggs写道:

你好,我希望有人可以指出我正确的方向,或者更好,帮我一个代码片段:)

我在字符串中有以下文字:

" =?utf-8?B?UmHimaXDr + KBv2cgIEzimYLimYDimatpzrU =?=" ;

我想将它转换为可显示的字符,如下所示:

Ra?ving L ??? ie

我知道我将丢失不可显示的字符,而这正是我想要用输入文本做什么但我不知道该怎么做。
任何人都可以给我一些建议请问如何实现这个目标?我会非常感激,因为我是一个新手,这已经让我感到难过了两天。我有.NET 2003和.NET 2005,但
更喜欢在2005年工作,如果
有帮助。




Hello, I''m hoping someone can point me in the right direction, or better
still, help me with a code snippet :)

I have the following text in a string:

"=?utf-8?B?UmHimaXDr+KBv2cgIEzimYLimYDimatpzrU=?="

I want to convert it to displayable characters, like this:

"Ra?ving L???ie"

I know I will lose non-displayable characters, and that''s exactly what I
want to do with the input text but I don''t know how to do it. Can anyone
give me some advice on how to go about achieving that goal, please? I''d be
very grateful as I''m a novice and this has had me stumped for two days.

I have both .NET 2003 and .NET 2005, but prefer to work in 2005, if that
helps.

解决方案


So you basically want to only display certain ASCII values, so can''t you
use chr.

Put the string in a loop and do

foreach(char c in s)
....print values that are <> n and n1

Harold Skeggs wrote:

Hello, I''m hoping someone can point me in the right direction, or better
still, help me with a code snippet :)

I have the following text in a string:

"=?utf-8?B?UmHimaXDr+KBv2cgIEzimYLimYDimatpzrU=?="

I want to convert it to displayable characters, like this:

"Ra?ving L???ie"

I know I will lose non-displayable characters, and that''s exactly what I
want to do with the input text but I don''t know how to do it. Can anyone
give me some advice on how to go about achieving that goal, please? I''d be
very grateful as I''m a novice and this has had me stumped for two days.

I have both .NET 2003 and .NET 2005, but prefer to work in 2005, if that
helps.



"John A. Bailo" <ja*****@texeme.com> wrote in message
news:c4********************@speakeasy.net

So you basically want to only display certain ASCII values, so can''t
you use chr.

Put the string in a loop and do

foreach(char c in s)
....print values that are <> n and n1
Huh?

How do you propose that your code will translate the string
"=?utf-8?B?UmHimaXDr+KBv2cgIEzimYLimYDimatpzrU=?=" into the correct "Ra?ving
L???ie"?

Are you a linux-using idiot or something? Sheesh.
Harold Skeggs wrote:

Hello, I''m hoping someone can point me in the right direction, or
better still, help me with a code snippet :)

I have the following text in a string:

"=?utf-8?B?UmHimaXDr+KBv2cgIEzimYLimYDimatpzrU=?="

I want to convert it to displayable characters, like this:

"Ra?ving L???ie"

I know I will lose non-displayable characters, and that''s exactly
what I want to do with the input text but I don''t know how to do it.
Can anyone give me some advice on how to go about achieving that
goal, please? I''d be very grateful as I''m a novice and this has had
me stumped for two days. I have both .NET 2003 and .NET 2005, but prefer
to work in 2005, if
that helps.



I can''t make any sense out of your question either,
but it would help if you didn''t post to both VB
and VB.Net. The groups with "dotnet" are for
..Net. The first group in your posting list is VB6
and under.

--
ma**********@mindXXspring.com
(Remove Xs for return email.)
Harold Skeggs <no.spam.for.me@thanks> wrote in message
news:dl**********@pita.alt.net...

"John A. Bailo" <ja*****@texeme.com> wrote in message
news:c4********************@speakeasy.net

So you basically want to only display certain ASCII values, so can''t
you use chr.

Put the string in a loop and do

foreach(char c in s)
....print values that are <> n and n1
Huh?

How do you propose that your code will translate the string
"=?utf-8?B?UmHimaXDr+KBv2cgIEzimYLimYDimatpzrU=?=" into the correct


"Ra?ving L???ie"?

Are you a linux-using idiot or something? Sheesh.

Harold Skeggs wrote:

Hello, I''m hoping someone can point me in the right direction, or
better still, help me with a code snippet :)

I have the following text in a string:

"=?utf-8?B?UmHimaXDr+KBv2cgIEzimYLimYDimatpzrU=?="

I want to convert it to displayable characters, like this:

"Ra?ving L???ie"

I know I will lose non-displayable characters, and that''s exactly
what I want to do with the input text but I don''t know how to do it.
Can anyone give me some advice on how to go about achieving that
goal, please? I''d be very grateful as I''m a novice and this has had
me stumped for two days. I have both .NET 2003 and .NET 2005, but prefer to work in 2005, if
that helps.




这篇关于来自地狱的弦乐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆