Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unrecognizable characters in target path #3

Open
mdjdot opened this issue Jul 2, 2020 · 0 comments
Open

unrecognizable characters in target path #3

mdjdot opened this issue Jul 2, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mdjdot
Copy link

mdjdot commented Jul 2, 2020

hi parsiya,

thank you for providing such a good tool to handle the Windows Shortcut file.
but when I am trying to get the target path of a lnk file with Chinese characters in file name, I got the unrecognizable characters in target path.
would you like to have a look of this?

code:

package main

import (
	"fmt"

	lnk "github.com/parsiya/golnk"
)

func main() {

	Lnk, err := lnk.File("./第一本docker书.pdf.lnk")
	if err != nil {
		panic(err)
	}

	// Path to the target file is usually in LinkInfo.LocalBasePath.
	fmt.Println("BasePath", Lnk.LinkInfo.LocalBasePath)
}

output:
go run .\main.go
BasePath D:\Tele\files\��һ��docker��.pdf

@parsiya parsiya self-assigned this Jul 3, 2020
@parsiya parsiya added the bug Something isn't working label Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants