microsoft / microsoft/WindowsAppSDK

[BUG] Phi Silica's input of double byte content may result in garbled characters during inference

Open
#5,517 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-WCR
Dominant language
C++
Stars
4.7k
Forks
471
Avg merge
3d 13h
Merged PRs (30d)
28

Description

### Describe the bug

Describe the bug
Phi Silica's input of double byte content may result in garbled characters during inference, but there will be no such issue during inference before April 25, 2025. Did something happen?

To Reproduce
Steps to reproduce the behavior:
1.Open "AI Dev Gallery Dev"
2.Select "Gamples"
3.Click “Generate Text”
4.Input "你是谁" or “如何制作一份煎牛排”
5.Output contains garbled code

Expected behavior
Output contains garbled code

Screenshots

![Image](https://github.com/user-attachments/assets/7e42787d-a1b2-4269-a095-f1834173f65a)

Please complete the following information:

App Version [version 0.0.1.0]:
Additional context
Windows 11 Home Insider Preview 24H2
Installed on:4/27/2025
OS build:26200.5570
Experience: Windows Feature Experience Pack 1000.26100.89.0

### Steps to reproduce the bug

Steps to reproduce the behavior:
1.Open "AI Dev Gallery Dev"
2.Select "Gamples"
3.Click “Generate Text”
4.Input "你是谁" or “如何制作一份煎牛排”
5.Output contains garbled code

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

Windows App SDK 1.8 Experimental 2: 1.8.250515001-experimental2

### Packaging type

_No response_

### Windows version

_No response_

### IDE

Visual Studio 2022-preview

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in AI Dev Gallery Dev through the Phi Silica Generate Text flow with the Chinese inputs "你是谁" and "如何制作一份煎牛排". Compare the output with the behavior before April 25, 2025 and investigate the Phi Silica integration used by that entry point. Done means double-byte input produces readable inference output rather than garbled characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
ai, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.