Skip to content

[Bug]: Hebrew filePaths not working #18864

Closed Answered by ToratEmetInWord
ToratEmetInWord asked this question in Q&A
Discussion options

You must be logged in to vote

turns out the problem was in my code i needed to decoed the filepath using utf8

here is the working code:

class Program
{
    static TaskCompletionSource<bool> serverLoaded = new TaskCompletionSource<bool>();
    
    static async Task Main()
    {
        // URL and base directory for the local server
        string url = "http://localhost:8082/";
        string baseDirectory = @"C:\Users\Admin\Downloads\pdfjs-4.7.76-legacy-dist\web";

        // Start the server in a separate task
        Task serverTask = Task.Run(() => StartServer(url, baseDirectory));

        // Wait for the server to start
        Console.WriteLine("Starting server...");
        await serverLoaded.Task; // Wait for…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ToratEmetInWord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #18863 on October 06, 2024 21:29.