C
C#5d ago
Eple

Foreign text in my app

I was debugging my app locally when I noticed this foreign text.
瀀琀㸀਀    昀甀渀挀琀椀漀渀 猀挀爀椀瀀琀䰀漀愀搀攀搀⠀⤀ 笀਀        ␀⠀∀⌀昀椀攀氀搀开
Here's my code:
@page "/Support"
@attribute [Authorize]

<h1>Support</h1>

<p>Skjema for innsending av supportsak til SuperOffice</p>

<script src='https://online2.superoffice.com/[redacted]' onload="superOfficeScriptLoaded()"></script>

<script>
function superOfficeScriptLoaded() {
$("#field_2").val("{{context.User.Identity?.Name}}");
}
</script>

@code {

}
@page "/Support"
@attribute [Authorize]

<h1>Support</h1>

<p>Skjema for innsending av supportsak til SuperOffice</p>

<script src='https://online2.superoffice.com/[redacted]' onload="superOfficeScriptLoaded()"></script>

<script>
function superOfficeScriptLoaded() {
$("#field_2").val("{{context.User.Identity?.Name}}");
}
</script>

@code {

}
Can someone explain it?
No description
3 Replies
FusedQyou
FusedQyou5d ago
Open dev tools and check where in the code this text is applied My guess is an element with id field_2
GrabYourPitchforks
It's an endianness issue. The string shown in your debugger is literally this:
pt>
function scriptLoaded() {
$("#field_
pt>
function scriptLoaded() {
$("#field_
But with the bytes of each UTF-16 char swapped. I don't know what would have caused it, but that's the issue at least.

Did you find this page helpful?