link info: detect encoding