为什么Environment.NewLine 显示为方形字符?

发布于 2024-08-09 04:24:19 字数 189 浏览 1 评论 0原文

我正在使用 .Net Windows 应用程序。在我的机器上,表单将Environment.NewLine正确显示为新行。然而,在测试人员的机器上,相同的Environment.NewLine 显示为方形字符。在我们的两台机器上,出于测试目的,我们将区域设置暂时设置为法语。

如何设置测试人员的机器以正确显示Environment.Newline?

I'm working with a .Net windows application. On my machine, a form displays Environment.NewLine correctly as a new line. However, on a tester's machine, the same Environment.NewLine is being displayed as a square character. On both of our machines, we have our regional settings temporarily set to French, for testing purposes.

How do I set up the tester's machine to display the Environment.Newline properly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天荒地未老 2024-08-16 04:24:19

第一步 - 找出测试人员机器上的 Environment.NewLine 实际上是什么。也许它是\n而不是\r\n,尽管我发现很难想象如何......

只需打印出Environment.NewLine.Length 作为起点。

First step - find out what Environment.NewLine actually is on the tester's machine. Perhaps it's somehow \n instead of \r\n, although I find it hard to imagine how...

Just print out Environment.NewLine.Length as a starting point.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文